diff options
author | Alec Scott <hi@alecbcs.com> | 2024-10-02 05:23:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 06:23:13 -0600 |
commit | dcdc678b19def86b584182bcde47cf8858617e31 (patch) | |
tree | 2426aa081dca3cf77701632523396c8b1016072d /lib | |
parent | 8e3e7a5541aea3c510cb9380a8a5e6488aabdec5 (diff) | |
download | spack-dcdc678b19def86b584182bcde47cf8858617e31.tar.gz spack-dcdc678b19def86b584182bcde47cf8858617e31.tar.bz2 spack-dcdc678b19def86b584182bcde47cf8858617e31.tar.xz spack-dcdc678b19def86b584182bcde47cf8858617e31.zip |
GoPackage: fix attributes to allow for custom build_directory values (#46707)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/go.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/go.py b/lib/spack/spack/build_systems/go.py index 8bddd7548e..ae588789c7 100644 --- a/lib/spack/spack/build_systems/go.py +++ b/lib/spack/spack/build_systems/go.py @@ -44,16 +44,27 @@ class GoBuilder(BaseBuilder): +-----------------------------------------------+--------------------+ | **Method** | **Purpose** | +===============================================+====================+ - | :py:meth:`~.GoBuilder.build_args` | Specify arguments | + | :py:attr:`~.GoBuilder.build_args` | Specify arguments | | | to ``go build`` | +-----------------------------------------------+--------------------+ - | :py:meth:`~.GoBuilder.check_args` | Specify arguments | + | :py:attr:`~.GoBuilder.check_args` | Specify arguments | | | to ``go test`` | +-----------------------------------------------+--------------------+ """ phases = ("build", "install") + #: Names associated with package methods in the old build-system format + legacy_methods = ("check", "installcheck") + + #: Names associated with package attributes in the old build-system format + legacy_attributes = ( + "build_args", + "check_args", + "build_directory", + "install_time_test_callbacks", + ) + #: Callback names for install-time test install_time_test_callbacks = ["check"] |