You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .go-env.sh
+33-5Lines changed: 33 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,27 @@ set -Eeuo pipefail
4
4
dir="$(dirname "$BASH_SOURCE")"
5
5
dir="$(readlink -ve "$dir")"
6
6
7
-
user="$(id -u):$(id -g)"
7
+
src="$dir"
8
+
dst="$dir"
9
+
msys=
10
+
if [ "$(uname -o)"='Msys' ];then
11
+
msys=1
12
+
ifcommand -v cygpath > /dev/null;then
13
+
src="$(cygpath --windows "$dst")"
14
+
fi
15
+
fi
16
+
windowsContainers=
17
+
serverOs="$(docker version --format '{{ .Server.Os }}')"
18
+
if [ "$serverOs"='windows' ];then
19
+
windowsContainers=1
20
+
# normally we'd want this to match $src so error messages, traces, etc are easier to follow, but $src might be on a non-C: drive letter and not be usable in the container as-is 😭
0 commit comments