Skip to content

Commit

Permalink
test that binaries created by 'go install' will currently be rejected (
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook authored Sep 25, 2023
1 parent 27ef546 commit 33236b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testdata/scripts/test.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ rm .git
! exec gorepro -v out
stdout '"out" was built in a Git repo, but gorepro wasn''t run in one; reproducing will fail'

env GOBIN=$WORK
exec go install golang.org/x/example/hello@latest
! exec gorepro -v $GOBIN/hello
stdout 'was built using "go install", reproducing is possible but not supported by gorepro'

cd ../second
# test when main pkg dir is passed as a build arg without -trimpath
exec go build -o out ./main
Expand Down

0 comments on commit 33236b3

Please sign in to comment.