Skip to content

Commit

Permalink
remove default branch in favor of no default at all.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikogura committed Dec 21, 2021
1 parent 838d0ea commit 190c2d5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Execute() {
func init() {
rootCmd.PersistentFlags().BoolVarP(&Verbose, "verbose", "v", false, "Verbose output")
rootCmd.PersistentFlags().BoolVarP(&dryrun, "dryrun", "d", false, "Dry Run (Only applies to publish.")
rootCmd.PersistentFlags().StringVarP(&branch, "branch", "b", "master", "Branch to operate upon")
rootCmd.PersistentFlags().StringVarP(&branch, "branch", "b", "", "Branch to operate upon")
rootCmd.PersistentFlags().StringVarP(&workdir, "workdir", "w", "", "Workdir. If omitted, a temp dir will be created and subsequently cleaned up.")
rootCmd.PersistentFlags().StringVarP(&buildSkipTargets, "skip-build-targets", "", "", fmt.Sprintf("Comma separated list of build targets from %s to skip.", gomason.METADATA_FILENAME))
rootCmd.PersistentFlags().StringVarP(&testTimeout, "test-timeout", "", "", "timeout for tests to complete (must be valid time input for language)")
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": "2.8.0",
"version": "2.10.0",
"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
8 changes: 4 additions & 4 deletions pkg/gomason/golang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestCheckoutDefault(t *testing.T) {
}

log.Printf("Checking out Master Branch")
err = lang.Checkout(gopath, testMetadataObj(), "master")
err = lang.Checkout(gopath, testMetadataObj(), "")
if err != nil {
log.Printf("Failed to checkout module: %s", err)
t.FailNow()
Expand Down Expand Up @@ -91,7 +91,7 @@ func TestPrep(t *testing.T) {
t.FailNow()
}

err = lang.Checkout(gopath, testMetadataObj(), "master")
err = lang.Checkout(gopath, testMetadataObj(), "")
if err != nil {
log.Printf("Failed to checkout module: %s", err)
t.FailNow()
Expand Down Expand Up @@ -181,7 +181,7 @@ func TestBuild(t *testing.T) {

log.Printf("Checking out Master Branch")

err = lang.Checkout(gopath, testMetadataObj(), "master")
err = lang.Checkout(gopath, testMetadataObj(), "")
if err != nil {
log.Printf("Failed to checkout module: %s", err)
t.FailNow()
Expand Down Expand Up @@ -246,7 +246,7 @@ func TestTest(t *testing.T) {
t.FailNow()
}

err = lang.Checkout(gopath, testMetadataObj(), "master")
err = lang.Checkout(gopath, testMetadataObj(), "")
if err != nil {
log.Printf("Failed to checkout module: %s", err)
t.FailNow()
Expand Down
2 changes: 1 addition & 1 deletion pkg/gomason/gomason.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

// VERSION is the current gomason version
const VERSION = "2.9.0"
const VERSION = "2.10.0"

// METADATA_FILENAME The default gomason metadata file name
const METADATA_FILENAME = "metadata.json"
Expand Down

0 comments on commit 190c2d5

Please sign in to comment.