summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2024-10-22 14:17:18 -0700
committerGitHub <noreply@github.com>2024-10-22 14:17:18 -0700
commitc102ff953bc948cb897ce4947d2bcc1c248eba4d (patch)
tree446dc3e14b1bc73db5cc0fb098de5cef605aedd0
parent59a2a87937f1f733283fea01d0ee77a813ddad46 (diff)
downloadspack-c102ff953bc948cb897ce4947d2bcc1c248eba4d.tar.gz
spack-c102ff953bc948cb897ce4947d2bcc1c248eba4d.tar.bz2
spack-c102ff953bc948cb897ce4947d2bcc1c248eba4d.tar.xz
spack-c102ff953bc948cb897ce4947d2bcc1c248eba4d.zip
goimports: new package (#47138)
-rw-r--r--var/spack/repos/builtin/packages/goimports/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/goimports/package.py b/var/spack/repos/builtin/packages/goimports/package.py
new file mode 100644
index 0000000000..2c799cfde5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/goimports/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class Goimports(GoPackage):
+ """Updates your Go import lines, adding missing ones and removing unreferenced ones."""
+
+ homepage = "https://golang.org/x/tools/cmd/goimports"
+ url = "https://github.com/golang/tools/archive/refs/tags/v0.25.0.tar.gz"
+
+ maintainers("alecbcs")
+
+ license("BSD-3-Clause", checked_by="alecbcs")
+
+ version("0.25.0", sha256="c536188f5db744371f526f3059960945ed580b3ee60553a4f01956251ab36d20")
+
+ build_directory = "cmd/goimports"