Skip to content

Commit

Permalink
added log output of skip signing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikogura committed Feb 22, 2018
1 parent 86acd63 commit 6160b0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mason/cmd/publish.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
// Copyright © 2017 Nik Ogura <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -89,6 +89,9 @@ Publish will upload your binaries to wherever it is you've configured them to go
log.Printf("Build Succeeded!\n\n")

if meta.PublishInfo.SkipSigning {
if verbose {
log.Printf("Skipping signing due to 'skip-signing': true in metadata.json")
}
err = mason.PublishBuildTargets(meta, gopath, cwd, false, true, false, verbose)
if err != nil {
log.Fatalf("post-build processing failed: %s", err)
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.4",
"version": "1.2.5",
"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

0 comments on commit 6160b0f

Please sign in to comment.