Skip to content

Commit

Permalink
Changes for rc.1
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka committed May 10, 2020
1 parent b6c5fba commit a9a4aeb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .gobin/gobin.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module _ // Auto generated by https://github.com/bwplotka/gobin. DO NOT EDIT

go 1.14

require github.com/bwplotka/gobin v0.0.0-20200506143537-08d2a09da787
require (
github.com/bwplotka/gobin v0.1.0-rc.1
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
)
6 changes: 0 additions & 6 deletions .gobin/gobin.sum

This file was deleted.

2 changes: 1 addition & 1 deletion get.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func ensureGobinModFile(
r *gomodcmd.Runner,
modDir string,
) error {
_, err := os.Stat(filepath.Join(modDir, gobinBinName))
_, err := os.Stat(filepath.Join(modDir, gobinBinName+".mod"))
if err != nil && !os.IsNotExist(err) {
return errors.Wrapf(err, "stat module file %s", filepath.Join(modDir, gobinBinName))
}
Expand Down
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
)

const (
version = "v0.9.0"
defaultMakefileName = "Makefile"
gobinBinName = "gobin"
gobinInstallPath = "github.com/bwplotka/gobin"
Expand Down Expand Up @@ -52,7 +51,7 @@ func main() {
"If no package/binary is specified, gobin get will return error")
goCmd := getFlags.String("go", "go", "Path to the go command.")
update := getFlags.Bool("u", false, "The -u flag instructs get to update modules providing dependencies of packages named on the command line to use newer minor or patch releases when available.")
updatePatch := getFlags.Bool("u=patch", false, "The -u=patch flag (not -u patch) also instructs get to update dependencies, but changes the default to select patch releases.")
updatePatch := getFlags.Bool("upatch", false, "The -upatch flag (not -u patch) also instructs get to update dependencies, but changes the default to select patch releases.")
insecure := getFlags.Bool("insecure", false, "Use -insecure flag when using 'go get'")
makefile := getFlags.String("makefile", "", "Makefile to use for generated helper for make. It is expected to be relative to project root module. If not found, no helper will be generated. If flag is specified but file was not found, it will return error")
// Go flags are so broken, need to add shadow -v flag to make those work in both before and after `get` command.
Expand Down Expand Up @@ -108,7 +107,7 @@ Prints gobin version.

upPolicy := gomodcmd.NoUpdatePolicy
if *update {
upPolicy = gomodcmd.UpdatePatchPolicy
upPolicy = gomodcmd.UpdatePolicy
}
if *updatePatch {
upPolicy = gomodcmd.UpdatePatchPolicy
Expand Down
3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package main

const version = "v0.1.0.rc.1"

0 comments on commit a9a4aeb

Please sign in to comment.