Getting go import errors with SOPS v3.6.0
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
I get the following error with SOPS v3.6.0 when importing in golang:
go.mozilla.org/sops/v3/decrypt imports
go.mozilla.org/sops/v3/cmd/sops/common imports
go.mozilla.org/sops/v3/keyservice imports
go.mozilla.org/sops/v3/hcvault imports
github.com/hashicorp/vault/api: ambiguous import: found package github.com/hashicorp/vault/api in multiple modules:
github.com/hashicorp/vault v0.10.4 (/home/eamonn/golang/pkg/mod/github.com/hashicorp/vault@v0.10.4/api)
github.com/hashicorp/vault/api v1.0.4 (/home/eamonn/golang/pkg/mod/github.com/hashicorp/vault/api@v1.0.4)
Previous versions of SOPS had no issue, I presume because Vault support is new.
Perhaps the following link might provide some guidance: https://github.com/hashicorp/vault/issues/7073?
Thanks.
-Eamonn.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported Go import chain through go.mozilla.org/sops/v3/hcvault and the conflicting github.com/hashicorp/vault modules v0.10.4 and api v1.0.4. Check how the dependency versions are selected; done means importing SOPS no longer produces the ambiguous github.com/hashicorp/vault/api error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100