Sha256: 3e65f7d9da303cbbbbb0f4339af5ce953ef39c75a268dbc5fed83afc6790bb12

Contents?: true

Size: 1.21 KB

Versions: 14

Compression:

Stored size: 1.21 KB

Contents

# Go

The go source uses `go` CLI commands to enumerate dependencies and properties.  It is expected that `go` projects have been built, and that `go` environment variables are properly set before running `licensed`.

#### Source paths
Source paths for go projects should point to a location that contains an entrypoint to the executable or library.

An example usage might see a configuration like:
```YAML
source_path: go/path/src/github.com/BurntSushi/toml/cmd/tomlv
```

Note that this configuration points directly to the tomlv command source, which contains `func main`.

#### GOPATH
A valid `GOPATH` is required to successfully find `go` dependencies.  If `GOPATH` is not available in the calling environment, or if a different `GOPATH` is needed than what is set in the calling environment, a value can be set in the `licensed` configuration file.

```yaml
go:
  GOPATH: ~/go
```

The setting supports absolute, relative and expandable (e.g. "~") paths.  Relative paths are considered relative to the repository root.

Non-empty `GOPATH` configuration settings will override the `GOPATH` environment variable while enumerating `go` dependencies.  The `GOPATH` environment variable is restored once dependencies have been enumerated.

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
licensed-2.1.0 docs/sources/go.md
licensed-2.0.1 docs/sources/go.md
licensed-2.0.0 docs/sources/go.md
licensed-1.5.2 docs/sources/go.md
licensed-1.5.1 docs/sources/go.md
licensed-1.4.0 docs/sources/go.md
licensed-1.3.4 docs/sources/go.md
licensed-1.3.3 docs/sources/go.md
licensed-1.3.2 docs/sources/go.md
licensed-1.3.1 docs/sources/go.md
licensed-1.3.0 docs/sources/go.md
licensed-1.2.0 docs/sources/go.md
licensed-1.1.0 docs/sources/go.md
licensed-1.0.1 docs/sources/go.md