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: support installing github.com/myitcv/gobin (#17)
This is initial support that is unlikely to work on Windows, hence the TODO in the code. Unfortunately, I've had to mark the test as skip for now because we can't install "self" from the module under test. I.e. it's not possible to run go install for a package in the module under test, i.e. github.com/myitcv/gobin.
- Loading branch information
Showing
3 changed files
with
64 additions
and
11 deletions.
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
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,21 @@ | ||
skip 'Skipping because of https://github.com/golang/go/issues/26241' | ||
|
||
env GOPROXY=file://$TESTGOPATH/pkg/mod/cache/download | ||
env GOBIN=$WORK/install | ||
env PATH=$GOBIN:$PATH | ||
|
||
env GOPATH=$TESTGOPATH | ||
cd $GOBINMODPATH | ||
go install | ||
exists $GOBIN/gobin | ||
exec which gobin | ||
stdout ^$GOBIN/gobin'$' | ||
|
||
cd $WORK/repo | ||
exec go mod edit -replace=myitcv.io=$GOBINMODPATH | ||
exec gobin -m github.com/myitcv/gobin | ||
|
||
-- repo/go.mod -- | ||
module mod | ||
|
||
require github.com/myitcv/gobin v0.0.0 |