-
-
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.
Embed local imports and cached remote imports into binary
Resolves #28
- Loading branch information
Showing
9 changed files
with
295 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ variant | |
bin/golangci-lint | ||
bin/goimports | ||
\#*# | ||
.variant2 |
Empty file.
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
PROJECT_ROOT=../../.. | ||
VARIANT=${PROJECT_ROOT}/variant | ||
|
||
export VARIANT_BUILD_VER=v0.33.3 | ||
export VARIANT_BUILD_REPLACE=$(pwd)/${PROJECT_ROOT} | ||
|
||
rm -rf ../exported | ||
rm -rf ../compiled | ||
|
||
(cd ${PROJECT_ROOT}; make build) | ||
${VARIANT} export go ../import-multi ../exported | ||
${VARIANT} export binary ../import-multi ../compiled | ||
|
||
${VARIANT} run foo baz HELLO1 | ||
|
||
(cd ..; ./compiled foo baz HELLO2) |
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
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
Oops, something went wrong.