Remove go-dep package from build environment

The go-dep package is no longer used in the build process
and can be removed from the build environment to eliminate
unnecessary dependencies.

Test Plan:
PASS: Download all packages successfully.
PASS: Build ISO and installed as AIO-SX.

Story: 2011047
Task: 51439

Change-Id: I3d85e16796d32e4fe444cc241c2d4e1852fab804
Signed-off-by: Boovan Rajendran <boovan.rajendran@windriver.com>
This commit is contained in:
Boovan Rajendran
2024-12-04 02:44:12 -05:00
parent 06fbe30932
commit eb34ed1f3b
4 changed files with 0 additions and 41 deletions

View File

@@ -3,4 +3,3 @@ languages/golang-1.17.5
languages/golang-1.18.5
languages/golang-1.20.11
languages/golang-1.21.7
tools/golang-dep

View File

@@ -1,33 +0,0 @@
From f16b8b44ed946e40871abf6b3d8d638c768b0dd2 Mon Sep 17 00:00:00 2001
From: Boovan Rajendran <boovan.rajendran@windriver.com>
Date: Fri, 22 Nov 2024 03:51:57 -0500
Subject: [PATCH] Fix for GOPATH failure in go-dep Package
The go-dep package is encountering the following error after
updating golang-any, golang-go, and golang-src to version 1.22:
"go.mod file not found in current directory or any parent"
According to the Golang 1.22 release notes
https://tip.golang.org/doc/go1.22#go-command, go get is no longer
supported outside of a module in the legacy GOPATH mode.
Signed-off-by: Boovan Rajendran <boovan.rajendran@windriver.com>
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules b/debian/rules
index 1585fda..e3f90c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@ include /usr/share/dpkg/architecture.mk
export DH_VERBOSE := 3
export DH_GOLANG_INSTALL_ALL := 1
+export GO111MODULE := off
%:
dh $@ --buildsystem=golang --with=golang
--
2.25.1

View File

@@ -1 +0,0 @@
0001-Fix-for-GOPATH-failure-in-go-dep-Package.patch

View File

@@ -1,6 +0,0 @@
debver: 0.5.4-3
debname: go-dep
archive: http://snapshot.debian.org/archive/debian/20200104T085234Z/pool/main/g/go-dep/
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: