Skip to content

Commit f04311e

Browse files
authored
Merge pull request #212 from elezar/use-single-golang-versions
Use project golang version for systemd installer
2 parents e77f3dc + 7b33214 commit f04311e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deployments/systemd/install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

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+
1723
: ${DOCKER:=docker}
1824

1925
SERVICE_ROOT="nvidia-mig-manager"
@@ -48,7 +54,7 @@ chmod a+rx ${PROFILED_DIR}
4854

4955
${DOCKER} run --rm \
5056
-v ${BINARY_DIR}:/dest \
51-
golang:1.22.5 \
57+
golang${GOLANG_VERSION:+":${GOLANG_VERSION}"} \
5258
sh -c "
5359
go install $MIG_PARTED_GO_GET_PATH@latest
5460
mv /go/bin/nvidia-mig-parted /dest/nvidia-mig-parted

0 commit comments

Comments
 (0)