Skip to content

Commit

Permalink
Update cache directory .sigstore -> sigstore. (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynch authored Jan 12, 2023
1 parent 98ef482 commit f9c532b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/gitsign-credential-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ you, until the signing certificate expires, typically in ten minutes.

```sh
$ gitsign-credential-cache &
$ export GITSIGN_CREDENTIAL_CACHE="$HOME/.cache/.sigstore/gitsign/cache.sock"
$ export GITSIGN_CREDENTIAL_CACHE="$HOME/.cache/sigstore/gitsign/cache.sock"
$ git commit ...
```

Expand All @@ -61,10 +61,10 @@ or in `~/.ssh/config`:

```
Host amazon
RemoteForward /home/wlynch/.sigstore/cache.sock /Users/wlynch/Library/Caches/.sigstore/gitsign/cache.sock
RemoteForward /home/wlynch/.cache/sigstore/cache.sock /Users/wlynch/Library/Caches/sigstore/gitsign/cache.sock
```

where `/home/wlynch/.sigstore/cache.sock` is the location of the socket path on
where `/home/wlynch/.cache/sigstore/cache.sock` is the location of the socket path on
the remote host (this can be changed, so long as the environment variable is
also updated to match).

Expand Down
2 changes: 1 addition & 1 deletion cmd/gitsign-credential-cache/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func main() {
log.Fatalf("error getting user cache directory: %v", err)
}

dir := filepath.Join(user, ".sigstore", "gitsign")
dir := filepath.Join(user, "sigstore", "gitsign")
if err := os.MkdirAll(dir, 0700); err != nil {
log.Fatalf("error creating %s: %v", dir, err)
}
Expand Down

0 comments on commit f9c532b

Please sign in to comment.