Skip to content

Commit

Permalink
add --yes to gpg commands, so if we rebuild and re-sign we're not pro…
Browse files Browse the repository at this point in the history
…mpted to confirm overwrite
  • Loading branch information
nikogura committed Jan 24, 2023
1 parent 8c6a0c0 commit 8debbed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.13.0",
"version": "2.13.1",
"package": "github.com/nikogura/gomason",
"description": "A tool for testing, building, signing, and publishing your project from a clean workspace.",
"repository": "http://localhost:8081/artifactory/generic-local",
Expand Down
2 changes: 1 addition & 1 deletion pkg/gomason/gomason.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
}

// VERSION is the current gomason version
const VERSION = "2.13.0"
const VERSION = "2.13.1"

// METADATA_FILENAME The default gomason metadata file name
const METADATA_FILENAME = "metadata.json"
Expand Down
4 changes: 2 additions & 2 deletions pkg/gomason/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ func SignGPG(binary string, signingEntity string, meta Metadata) (err error) {

if keyring, ok := meta.Options["keyring"]; ok {
// use a custom keyring for testing
cmd = exec.Command(shellCmd, "--trustdb", meta.Options["trustdb"].(string), "--no-default-keyring", "--keyring", keyring.(string), "-bau", signingEntity, binary)
cmd = exec.Command(shellCmd, "--trustdb", meta.Options["trustdb"].(string), "--no-default-keyring", "--keyring", keyring.(string), "-bau", signingEntity, "--yes", binary)

} else {
// gpg -bau <email address> <file>
// -b detatch -a ascii armor -u specify user
cmd = exec.Command(shellCmd, "-bau", signingEntity, binary)
cmd = exec.Command(shellCmd, "-bau", signingEntity, "--yes", binary)
}

cmd.Stdout = os.Stdout
Expand Down

0 comments on commit 8debbed

Please sign in to comment.