Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add option to retrieve credentials without git sync #2930

Open
meissa331 opened this issue Aug 6, 2024 · 2 comments
Open

Add option to retrieve credentials without git sync #2930

meissa331 opened this issue Aug 6, 2024 · 2 comments
Assignees

Comments

@meissa331
Copy link

Summary

We use gopass in direnv to inject credentials. An option to ommit git sync in order to speed up the direnv script would be great :-)

Steps To Reproduce

See https://repo.prod.meissa.de/meissa/build#try-out for an example.

@dominikschulz dominikschulz changed the title Add option to retrieve credentuials without git sync Add option to retrieve credentials without git sync Aug 29, 2024
@dominikschulz
Copy link
Member

Autosync should generally only run if gopass is running in a terminal: https://github.com/gopasspw/gopass/blob/master/internal/action/sync.go#L52

But if that doesn't work for some reason you could either try calling gopass config core.autosync false first or set the (deprecated) enviornment variable GOPASS_NO_AUTOSYNC to true.

@dominikschulz dominikschulz self-assigned this Aug 29, 2024
@jerger
Copy link
Contributor

jerger commented Aug 29, 2024

I assume execution in direnv counts as interactive & terminal as this is executed in bashrc context.

I will try out the config and hope to observe a speedup in execution - thx for the hint :-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants