getsops / getsops/sops

Getting go import errors with SOPS v3.6.0

Open
#698 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.