Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 4fc26ed

Browse files
authored
chore: separate unlinking go import path from cache saving (#560)
1 parent d03efc9 commit 4fc26ed

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

run-build-functions.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -725,13 +725,6 @@ cache_artifacts() {
725725
cache_home_directory ".cargo/bin" "rust cargo bin cache"
726726
fi
727727

728-
# Don't follow the Go import path or we'll store
729-
# the origin repo twice.
730-
if [ -n "$GO_IMPORT_PATH" ]
731-
then
732-
unlink $GOPATH/src/$GO_IMPORT_PATH
733-
fi
734-
735728
chmod -R +rw $HOME/.gimme_cache
736729
cache_home_directory ".gimme_cache" "go dependencies"
737730

@@ -889,3 +882,10 @@ set_go_import_path() {
889882
cd $importPath
890883
fi
891884
}
885+
886+
unset_go_import_path() {
887+
if [ -n "$GO_IMPORT_PATH" ]
888+
then
889+
unlink $GOPATH/src/$GO_IMPORT_PATH
890+
fi
891+
}

0 commit comments

Comments
 (0)