forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POC] go.mod replace with ModulePath #3
Open
stefanpenner
wants to merge
4
commits into
hack-duplicate-go-deps-from-file
Choose a base branch
from
go-deps-replace-with-module-path
base: hack-duplicate-go-deps-from-file
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[POC] go.mod replace with ModulePath #3
stefanpenner
wants to merge
4
commits into
hack-duplicate-go-deps-from-file
from
go-deps-replace-with-module-path
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stefanpenner
changed the title
[WIP] go.mod replace with ModulePath
[POC] go.mod replace with ModulePath
Feb 22, 2024
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
4 times, most recently
from
February 26, 2024 17:16
45a18bb
to
068115e
Compare
stefanpenner
force-pushed
the
hack-duplicate-go-deps-from-file
branch
2 times, most recently
from
February 26, 2024 17:36
c73e943
to
26bbdba
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
February 26, 2024 18:14
068115e
to
8f7c963
Compare
stefanpenner
force-pushed
the
hack-duplicate-go-deps-from-file
branch
8 times, most recently
from
February 26, 2024 22:26
6114041
to
a2252f8
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
6 times, most recently
from
February 29, 2024 00:07
dc4a71d
to
3eede5e
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
March 16, 2024 20:14
3eede5e
to
cb5dd43
Compare
stefanpenner
force-pushed
the
hack-duplicate-go-deps-from-file
branch
4 times, most recently
from
March 16, 2024 21:06
d083b4b
to
8905c11
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
March 16, 2024 21:22
cb5dd43
to
3a4742e
Compare
stefanpenner
commented
Mar 16, 2024
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
March 18, 2024 22:01
3a4742e
to
c04c18a
Compare
stefanpenner
force-pushed
the
hack-duplicate-go-deps-from-file
branch
4 times, most recently
from
April 15, 2024 20:14
0de3150
to
b6802f2
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
April 15, 2024 20:50
15bede3
to
6200b94
Compare
stefanpenner
force-pushed
the
hack-duplicate-go-deps-from-file
branch
from
April 18, 2024 18:01
ae2935a
to
c292df3
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
2 times, most recently
from
April 18, 2024 18:43
5e9efed
to
9dd906d
Compare
* adds go_deps.from_file(go_work = "//:go.work") * adds ability to op-out of version conflict failures go_deps.from_file(go_work = "//:go.work, fail_on_version_conflict = False) * parses go.work files to discover used go modules and replace statements * generates repos for all deps specified in go.mod's referenced by the //:go.work * handle replace statements (both at the go.work and the go.mod level) * Errors with actionable error message if duplicate dependencies with differing versions arise (Question: can we do better?) * expand BCR test coverage to include both go.work and go.mod scenarios Caveats: * allows for dependency bleed between different go modules in the workspace - this is sorta by design for this stepping stone, but is ideal * doesn't support replace statements in go.work yet (but that shouldn't be to hard to add in a follow up)
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
4 times, most recently
from
April 24, 2024 17:36
f46021b
to
92a2a0d
Compare
…1791) * Add GIT_CONFIG_* env vars to go_repository allow-list * Add '# keep sorted' comment
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
13 times, most recently
from
May 1, 2024 12:52
5ce68df
to
2da0494
Compare
stefanpenner
force-pushed
the
go-deps-replace-with-module-path
branch
from
May 1, 2024 15:19
2da0494
to
21b9b48
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Feature
What package or component does this PR mostly affect?
language/go
What does this PR do? Why is it needed?
This builds on the go.work support PR and the new rctx.watch_files support to add support for FilePath ReplaceDirective, in go.mod and go.work files when using bzlmod go_deps extension.
For example, now the following native go capability works in the bazel world:
Which issues(s) does this PR fix?
bazel-contrib#1775
Status
cmd/fetch_repo