Skip to content

fix: go mod vendor - #4207

Merged
aarzilli merged 1 commit into
go-delve:masterfrom
david-hamilton-glean:hjdivad/vendor
Nov 26, 2025
Merged

aarzilli merged 1 commit into
go-delve:masterfrom
david-hamilton-glean:hjdivad/vendor

Conversation

@david-hamilton-glean

@david-hamilton-glean david-hamilton-glean commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

6018abb removed the replace line in go.mod but did not update vendor/modules.txt.

This caused build issues:

❮ git switch --detach 6018abbe2fe81920d5be17aeebdfb4860e16a5ce && go build -o dlv
# ...
go: inconsistent vendoring in /Users/hjdivad/src/github/go-delve/delve:
        github.com/go-delve/build-tools@latest: is marked as replaced in vendor/modules.txt, but not replaced in go.mod

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor

see #4206.

Fix by re-running go mod vendor

6018abb removed the replace line in
go.mod but did not update vendor/modules.txt.

Trying to build cmd/dlv resulted in:

```
go: inconsistent vendoring in /Users/hjdivad/src/github/go-delve/delve:
        github.com/go-delve/build-tools@latest: is marked as replaced in vendor/modules.txt, but not replaced in go.mod

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor
```

see go-delve#4206.

Fix by re-running `go mod vendor`
@david-hamilton-glean

Copy link
Copy Markdown
Contributor Author

cc @aarzilli

@aarzilli
aarzilli merged commit 020791a into go-delve:master Nov 26, 2025
@aarzilli

Copy link
Copy Markdown
Member

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants