From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Packaging Terraform, a Golang package
Date: Wed, 19 Dec 2018 08:54:24 +0100 [thread overview]
Message-ID: <87bm5ivtn3.fsf@ambrevar.xyz> (raw)
In-Reply-To: <875zvqjjnl.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]
The answer is in the environment :) Go uses a few variables:
- GOROOT, which points to the Go system installation.
- GOPATH, which points to the Go user "workspace", ~/go by default.
A GOPATH tree looks like this:
--8<---------------cut here---------------start------------->8---
> tree ~/go
~/go
├── bin
│ ├── foo
│ └── ipfs
└── src
├── github.com
│ ├── aarzilli
│ │ └── golua
│ │ ├── example
│ │ │ ├── alloc.go
│ │ │ ├── basic.go
│ │ │ ├── calls.lua
│ │ │ ├── error.go
│ │ │ ├── panic.go
│ │ │ ├── quickstart.go
│ │ │ └── userdata.go
│ │ ├── LICENSE
│ │ ├── lua
│ │ │ ├── c-golua.c
│ │ │ ├── golua.go
│ │ │ ├── golua.h
│ │ │ ├── lauxlib.go
│ │ │ ├── lua
│ │ │ │ ├── lauxlib.h
│ │ │ │ ├── luaconf.h
│ │ │ │ ├── lua.h
│ │ │ │ └── lualib.h
│ │ │ ├── lua_defs.go
│ │ │ ├── lua.go
│ │ │ └── lua_test.go
│ │ ├── README.md
│ │ └── TODO
--8<---------------cut here---------------end--------------->8---
It's populated automatically by =go get=, =go install=, etc.
The only thing it does not guess automatically is the path to ~/go/bin, which
you must add like all other executable paths to PATH.
For instance, from you ~/.profile or similar:
export PATH=$PATH:~/go/bin
Hope that helps!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-12-19 7:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-19 3:10 Packaging Terraform, a Golang package Chris Marusich
2018-12-19 7:54 ` Pierre Neidhardt [this message]
2018-12-19 16:17 ` Chris Marusich
2018-12-19 16:29 ` Pierre Neidhardt
2018-12-19 23:42 ` Christopher Baines
2018-12-20 9:31 ` Chris Marusich
2018-12-20 9:47 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bm5ivtn3.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.