From d1439fe8eee130cbe4c0d68b4ea6706e3634b76b Mon Sep 17 00:00:00 2001
From: Alexandre Strube <a.strube@fz-juelich.de>
Date: Wed, 9 Nov 2022 18:12:08 +0100
Subject: [PATCH] Git lfs and Go

---
 Golden_Repo/g/Go/Go-1.18.3.eb          | 30 ++++++++++++++++++++++++++
 Golden_Repo/g/git-lfs/git-lfs-3.2.0.eb | 29 +++++++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 Golden_Repo/g/Go/Go-1.18.3.eb
 create mode 100644 Golden_Repo/g/git-lfs/git-lfs-3.2.0.eb

diff --git a/Golden_Repo/g/Go/Go-1.18.3.eb b/Golden_Repo/g/Go/Go-1.18.3.eb
new file mode 100644
index 000000000..ef69c7f70
--- /dev/null
+++ b/Golden_Repo/g/Go/Go-1.18.3.eb
@@ -0,0 +1,30 @@
+# Update to 1.18.3
+# Jordi Camps / CNAG
+
+easyblock = 'Tarball'
+
+name = 'Go'
+version = "1.18.3"
+
+homepage = 'https://www.golang.org'
+description = """Go is an open source programming language that makes it easy to build
+ simple, reliable, and efficient software."""
+
+toolchain = SYSTEM
+
+source_urls = ['https://storage.googleapis.com/golang/']
+
+local_archs = {'x86_64': 'amd64'}
+sources = ['go%%(version)s.linux-%s.tar.gz' % local_archs[ARCH]]
+checksums = ['956f8507b302ab0bb747613695cdae10af99bbd39a90cae522b7c0302cc27245']
+
+sanity_check_paths = {
+    'files': ['bin/go', 'bin/gofmt'],
+    'dirs': ['api', 'doc', 'lib', 'pkg'],
+}
+
+sanity_check_commands = ["go help"]
+
+modextravars = {'GOROOT': '%(installdir)s'}
+
+moduleclass = 'compiler'
diff --git a/Golden_Repo/g/git-lfs/git-lfs-3.2.0.eb b/Golden_Repo/g/git-lfs/git-lfs-3.2.0.eb
new file mode 100644
index 000000000..31497a18c
--- /dev/null
+++ b/Golden_Repo/g/git-lfs/git-lfs-3.2.0.eb
@@ -0,0 +1,29 @@
+easyblock = 'MakeCp'
+
+name = 'git-lfs'
+version = '3.2.0'
+
+homepage = 'https://git-lfs.github.com'
+description = """Git Large File Storage (LFS) replaces large files such as audio
+ samples, videos, datasets, and graphics with text pointers inside Git, while
+ storing the file contents on a remote server like GitHub.com"""
+
+toolchain = SYSTEM
+
+github_account = name
+source_urls = [GITHUB_SOURCE]
+sources = ['v%(version)s.tar.gz']
+checksums = ['f8e6bbe043b97db8a5c16da7289e149a3fed9f4d4f11cffcc6e517c7870cd9e5']
+
+builddependencies = [('Go', '1.18.3')]
+
+files_to_copy = [(['bin/%(name)s'], 'bin')]
+
+sanity_check_paths = {
+    'files': ['bin/git-lfs'],
+    'dirs': [],
+}
+
+sanity_check_commands = ["git-lfs --version"]
+
+moduleclass = 'tools'
-- 
GitLab