This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: correctly determine binary name in case path ends with major ve…
…rsion (#70)
- Loading branch information
1 parent
b3a85f0
commit f3d42eb
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.bin | ||
/release | ||
/gobin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# A test to ensure that where a major version (>=2) exists | ||
# at the end of the main package path that we end up with | ||
# the right binary name | ||
|
||
gobin -p example.com/good/v2 | ||
stdout [/\\]good$exe$ | ||
! stderr .+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- .mod -- | ||
module example.com/good/v2 | ||
|
||
-- .info -- | ||
{"Version":"v2.0.0","Time":"2018-10-22T18:45:39Z"} | ||
|
||
-- go.mod -- | ||
module example.com/good/v2 | ||
|
||
-- main.go -- | ||
package main | ||
|
||
func main() {} |