Hi Arnau,

I've no experience with Go installations either so maybe someone else add some 
pointers. I took a look and created a working example easyconfig at
https://gist.github.com/ocaisa/1057ca936273db6715768fcb9b4b9191

I would say that creating your own EasyBlock is ultimately the right way to go 
as there a good few caveats. In terms of reproducibility, I don't think using 
the -u flag is a good idea:
The -u flag instructs get to use the network to update the named packages and 
their dependencies. By default, get uses the network to check out missing 
packages but does not use it to look for updates to existing packages.
>From what I've read, the GOPATH looks like it needs to be handled the same we 
>currently handle python extensions with the caveat that it also seems to be 
>the place where the installation is made:
Go searches each directory listed in GOPATH to find source code, but new 
packages are always downloaded into the first directory in the list.
You also probably want to preemptively set your PATH to include 
%(installdir)s/bin in case it is needed.
To do things "properly" we would really need a gopackage.py easyblock , the 
easyconfig is too hacked and would be tedious to update/maintain.

Alan

On Tue, 24 Jul 2018 at 12:03, Arnau 
<listsar...@gmail.com<mailto:listsar...@gmail.com>> wrote:
Hi all,

I need to install a go program and the installation instruictions say that I 
need to run :

go get -u github.com/...<http://github.com/...>..

I've been looking into the EB doc and did not find any GO easyblock (or 
similar), which means that I'll have to create an easyconfgi with many 
customizations.
So I'd like to ask you for experience and recommendations for does kind of 
installations. (I'm quite new to go installations). Or even if someone already 
created some kind of GO easyblock.

TIA,
Arnau


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de<mailto:a.oc...@fz-juelich.de>
WWW:    http://www.fz-juelich.de/ias/jsc/EN


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Reply via email to