We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e77f3dc + 7b33214 commit f04311eCopy full SHA for f04311e
deployments/systemd/install.sh
@@ -14,6 +14,12 @@
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
17
+DEPLOYMENT_SYSTEMD_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
18
+HACK_DIR=${DEPLOYMENT_SYSTEMD_DIR}/../../hack
19
+
20
+# Extract the golang version from the script.
21
+. ${HACK_DIR}/golang-version.sh
22
23
: ${DOCKER:=docker}
24
25
SERVICE_ROOT="nvidia-mig-manager"
@@ -48,7 +54,7 @@ chmod a+rx ${PROFILED_DIR}
48
54
49
55
${DOCKER} run --rm \
50
56
-v ${BINARY_DIR}:/dest \
51
- golang:1.22.5 \
57
+ golang${GOLANG_VERSION:+":${GOLANG_VERSION}"} \
52
58
sh -c "
53
59
go install $MIG_PARTED_GO_GET_PATH@latest
60
mv /go/bin/nvidia-mig-parted /dest/nvidia-mig-parted
0 commit comments