Skip to content

Running go test for gopass modifies global config and also removes mounts #2725

@AnomalRoil

Description

@AnomalRoil

Summary

If you have a mounted substore, e.g. "test":

gopass (/home/anomalroil/.local/share/gopass/stores/root)
└── test (/home/anomalroil/.local/share/gopass/stores/test)

and you run go test ./... somehow your config is changed and you'll loose your mount and will have to mount it again.

Steps To Reproduce

$ gopass init --store test
$ gopass mounts
$ git clone https://github.com/gopasspw/gopass && cd gopass
$ go test ./... -count=1
$ gopass mounts

Expected behavior

Running the tests should remain contained to some kind of /tmp files and not affect the global developer config for gopass.

Environment

  • OS: Ubuntu 22.04
  • OS version: 6.5.6-76060506-generic #202310061235~1697396945~22.04~9283e32 SMP PREEMPT_DYNAMIC Sun O x86_64 x86_64 x86_64 GNU/Linux
  • gopass Version: master tip
  • Installation method: from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefects

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions