summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2024-07-18 10:18:05 -0600
committerGitHub <noreply@github.com>2024-07-18 09:18:05 -0700
commit31ef1df74fbce35283b36ec282bf8ddf6227fc12 (patch)
treed4176ffff4113fa7f45b31a2451fa029d5d546f5
parent00ae96a7cb6babfd8c383832e6a59d7b75311cca (diff)
downloadspack-31ef1df74fbce35283b36ec282bf8ddf6227fc12.tar.gz
spack-31ef1df74fbce35283b36ec282bf8ddf6227fc12.tar.bz2
spack-31ef1df74fbce35283b36ec282bf8ddf6227fc12.tar.xz
spack-31ef1df74fbce35283b36ec282bf8ddf6227fc12.zip
go: remove invalid deps (#45279)
* go: remove invalid deps * go: add dependencies sed and grep
-rw-r--r--var/spack/repos/builtin/packages/go-bootstrap/package.py6
-rw-r--r--var/spack/repos/builtin/packages/go/package.py7
2 files changed, 2 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/go-bootstrap/package.py b/var/spack/repos/builtin/packages/go-bootstrap/package.py
index 45977de0d7..108c854252 100644
--- a/var/spack/repos/builtin/packages/go-bootstrap/package.py
+++ b/var/spack/repos/builtin/packages/go-bootstrap/package.py
@@ -25,8 +25,6 @@ class GoBootstrap(Package):
maintainers("alecbcs")
- depends_on("git", type=("build", "link", "run"))
-
executables = ["^go$"]
# List binary go releases for multiple operating systems and architectures.
@@ -80,10 +78,6 @@ class GoBootstrap(Package):
version(release, sha256=go_releases[release][os][target])
provides(f"go-or-gccgo-bootstrap@{release}", when=f"@{release}")
- depends_on("c", type="build") # generated
- depends_on("cxx", type="build") # generated
- depends_on("fortran", type="build") # generated
-
# When the user adds a go compiler using ``spack external find go-bootstrap``,
# this lets us get the version for packages.yaml. Then, the solver can avoid
# to build the bootstrap go compiler(for aarch64, it's only gccgo) from source:
diff --git a/var/spack/repos/builtin/packages/go/package.py b/var/spack/repos/builtin/packages/go/package.py
index 4c0defc96e..25d53308c3 100644
--- a/var/spack/repos/builtin/packages/go/package.py
+++ b/var/spack/repos/builtin/packages/go/package.py
@@ -48,14 +48,11 @@ class Go(Package):
version("1.21.6", sha256="124926a62e45f78daabbaedb9c011d97633186a33c238ffc1e25320c02046248")
version("1.21.5", sha256="285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19")
- depends_on("c", type="build") # generated
- depends_on("cxx", type="build") # generated
- depends_on("fortran", type="build") # generated
-
provides("golang")
depends_on("bash", type="build")
- depends_on("git", type="run")
+ depends_on("sed", type="build")
+ depends_on("grep", type="build")
depends_on("go-or-gccgo-bootstrap", type="build")
depends_on("go-or-gccgo-bootstrap@1.17.13:", type="build", when="@1.20:")
depends_on("go-or-gccgo-bootstrap@1.20.6:", type="build", when="@1.22:")