Skip to content

link: make package conflicts into errors instead of warnings#2730

Merged
jayconrod merged 1 commit intobazel-contrib:masterfrom
jayconrod:flip-package-conflict
Nov 19, 2020
Merged

link: make package conflicts into errors instead of warnings#2730
jayconrod merged 1 commit intobazel-contrib:masterfrom
jayconrod:flip-package-conflict

Conversation

@jayconrod
Copy link
Copy Markdown
Collaborator

We've promised to do this for more than two years, and the time has
finally come.

If more than one copy of a package with the same package path is
provided to the linker, the GoLink action now reports an
error. Distinct packages (for example, from multiple vendor
directories) may be disambiguated with the importmap attribute.

Fixes #1374

We've promised to do this for more than two years, and the time has
finally come.

If more than one copy of a package with the same package path is
provided to the linker, the GoLink action now reports an
error. Distinct packages (for example, from multiple vendor
directories) may be disambiguated with the importmap attribute.

Fixes bazel-contrib#1374
@google-cla google-cla Bot added the cla: yes label Nov 19, 2020
@jayconrod jayconrod merged commit d3596ec into bazel-contrib:master Nov 19, 2020
@jayconrod jayconrod deleted the flip-package-conflict branch November 19, 2020 23:01
jayconrod pushed a commit to jayconrod/rules_go that referenced this pull request Feb 16, 2021
The Go 1.16 linker appears stricter about fingerprinting. This test no
longer works, but the behavior being tested was never supported.

Sync with the test on master, which always expects an error.
jayconrod pushed a commit that referenced this pull request Feb 16, 2021
Fixes #2820

---

tests: partial cherry-pick of test change in #2730

The Go 1.16 linker appears stricter about fingerprinting. This test no
longer works, but the behavior being tested was never supported.

Sync with the test on master, which always expects an error.
yushan26 pushed a commit to yushan26/rules_go that referenced this pull request Jun 16, 2025
This will remove the merge conflicts and improve the usability when the
`MODULE.bazel.lock` is used together with `rules_python`. This means
that the lock file will not be used to read the `URL` and `sha256`
values for the Python sources when the `experimental_index_url` is used,
but the idea is that that information will be kept in repo cache.

Fixes bazel-contrib#2434

Created bazel-contrib#2731 to leverage the bazel feature to write immutable facts to
the lock file once it becomes available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

link: error when multiple packages have same package path

1 participant