Skip to content
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

go.mod: use forked go-keychain #102

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

pgier
Copy link
Contributor

@pgier pgier commented Jan 19, 2022

Fixes #94
I think this also fixes #93

This updates the go modules (go.mod) to directly use the forked 99designs/go-keychain repository, instead of requiring keybase/go-keychain and then using the replace directive. The reasoning for this is because the replace directive does not propagate to projects which depend on the go-keychain project. This means other projects which depend on the go-keychain project still need to add their own replace directive. Removing the replace directive from this project means that consumers will automatically get the forked 99designs/go-keychain indirect dependency.

The only case where I see this possibly causing a problem would be a project which depends on 99designs/keyring and also depends on another project which depends on the upstream keybase/go-keychain. But even in that case, I believe go would just treat them as two separate packages and just include them both.

This updates the go modules (go.mod) to directly use the forked 99designs/go-keychain repository,
instead of requiring keybase/go-keychain and then using the replace directive.  The reasoning for
this is because the replace directive does not propagate to projects which depend on the go-keychain
project.  This means other projects which depend on the go-keychain project still need to add their
own replace directive.  Removing the replace directive from this project means that consumers
will automatically get the 99designs/go-keychain indirect dependency.  If there is a conflict
with another indirect dependency on keybase/go-keychain then that project can decide whether
to replace one or the other dependency.
@pgier
Copy link
Contributor Author

pgier commented Jan 25, 2022

@mtibben Any chance of merging this?

@mtibben mtibben merged commit ce6e9a0 into 99designs:master Jan 26, 2022
@endorama
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants