Comments (3)
Running under strace
shows that go test ./...
writes to the global gopass config a few times
$ GOPASS_HOMEDIR=/tmp/gp1
$ strace -f -o /tmp/gopass.strace go test ./... -count=1
$ grep "/tmp/gp1/.config/gopass/config" /tmp/gopass.strace | grep O_WRONLY
256051 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
256049 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
256060 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
256049 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
256435 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
256049 openat(AT_FDCWD, "/tmp/gp1/.config/gopass/config", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0600 <unfinished ...>
Now we need to figure out where this happens.
Edit: Actually this overwrites the entire config (O_CREATE
and O_TRUNC
).
from gopass.
I think I got it (mostly). Not exactly sure what the root cause is, but the trigger might be related to some of your recent changes @AnomalRoil .
We should probably add ctx = config.NewNoWrites().WithConfig(ctx)
to every (?) unit test.
Will work on a PR tomorrow.
from gopass.
The plot thickens:
$ grep "writing config to /tmp/gp1/.config/gopass/config" /tmp/gp.log
2023/11/25 18:20:57.225061 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
2023/11/25 18:20:57.226834 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
2023/11/25 18:20:57.233848 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
2023/11/25 18:20:57.234426 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
2023/11/25 18:20:57.278175 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
2023/11/25 18:20:57.307876 gitconfig/config.go:258 gitconfig.(*Config).flushRaw writing config to /tmp/gp1/.config/gopass/config:
from gopass.
Related Issues (20)
- Recipients question
- apt packages - no description given HOT 3
- `--stores` option incorrectly parsed HOT 10
- `core.notifications = false` not working in mounts HOT 3
- gopass 1.15.10 debian package broken HOT 8
- Feature: allow setting autosync.interval in minutes HOT 3
- `apt upgrade` fails with `gopass` due to `blank line in value of field 'Description'` HOT 1
- `gopass show --noparsing` does not work as expected unless it's forced
- Display Multi-line Passwords HOT 7
- Team function for importing a public key with sync (or via updates) is broken
- gopass otp gives git error HOT 3
- $PASSWORD_STORE_DIR expansion creates unintended directory structure when using fscopy HOT 2
- Including .gpg extension causes unintended results when calling fscopy HOT 9
- `gopass setup`: inconsistent behaviour and merge failure because of "unrelated histories" HOT 2
- gopass generate -g xkdc now fails if no language is set in config. HOT 1
- Feature Request: Wizard type multiline / editor HOT 4
- "Failed to check environment" & "Failed to list store" after fresh install HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 3
- Feature Request: Ignoring passwords in the audit feature HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopass.