cookbook 'golang', '= 1.7.0'
golang
(44) Versions
1.7.0
-
Follow23
Installs go programming language
cookbook 'golang', '= 1.7.0', :supermarket
knife supermarket install golang
knife supermarket download golang
<a name="title"></a> golang (Chef cookbook for Go)
<a name="description"></a> Description
Chef cookbook for Go programming language.
<a name="requirements"></a> Requirements
<a name="requirements-platform"></a> Platform
- Ubuntu (12.04/13.04/14.10)
- Debian (6.0)
Notes: This cookbook has been tested on the listed platforms. It
may work on other platforms with or without modification. Please
report issues any additional platforms so they can be added.
<a name="usage"></a> Usage
golang::default
Just include golang
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[golang]" ] }
golang::packages
To install Go packages using node attributes, include golang::packages
in your node's run_list
, and use the ['go']['packages']
attribute:
{ "name":"my_node", "go": { "packages": [ "launchpad.net/gocheck" ] }, "run_list": [ "recipe[golang::packages]" ] }
<a name="attributes"></a> Attributes
golang::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['go']['version']</tt></td>
<td>String</td>
<td>Go version</td>
<td><tt>1.4</tt></td>
</tr>
<tr>
<td><tt>['go']['platform']</tt></td>
<td>String</td>
<td>amd64
or i386
</td>
<td><tt>amd64</tt></td>
</tr>
<tr>
<td><tt>['go']['scm']</tt></td>
<td>Boolean</td>
<td>install SCM dependencies git
, hg
, and bzr
</td>
<td><tt>true</tt></td>
</tr>
</tr>
<tr>
<td><tt>['go']['packages']</tt></td>
<td>Array</td>
<td>Go packages to install when using the golang::packages
recipe</td>
<td><tt>[]</tt></td>
</tr>
<tr>
<td><tt>['go']['owner']</tt></td>
<td>String</td>
<td>The user account that owns $GOPATH</td>
<td><tt>root</tt></td>
</tr>
<tr>
<td><tt>['go']['group']</tt></td>
<td>String</td>
<td>The group that owns $GOPATH</td>
<td><tt>root</tt></td>
</tr>
<tr>
<td><tt>['go']['mode']</tt></td>
<td>String</td>
<td>The mode of $GOPATH</td>
<td><tt>0755</tt></td>
</tr>
<tr>
<td><tt>['go']['from_source']</tt></td>
<td>Boolean</td>
<td>Install go from source</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['go']['os']</tt></td>
<td>String</td>
<td>Build go for which operating system</td>
<td><tt>linux</tt></td>
</tr>
<tr>
<td><tt>['go']['arch']</tt></td>
<td>String</td>
<td>Build go for which architecture</td>
<td><tt>arm</tt></td>
</tr>
<tr>
<td><tt>['go']['arm']</tt></td>
<td>String</td>
<td>Build go for which arm version</td>
<td><tt>6</tt></td>
</tr>
<tr>
<td><tt>['go']['source_method']</tt></td>
<td>String</td>
<td>Choose which install script should be used</td>
<td><tt>all.bash</tt></td>
</tr>
</table>
<a name="testing"></a> Testing
This project have foodcritic for syntax checking and
test-kitchen for integration testing. You can run the test suite by
typing: rake kitchen:all
(may be slow for the first time).
In order to run these tests, the following
requirements must be
satisfied:
- Vagrant (>= 1.1.0)
- VirtualBox
- Vagrant Berkshelf Plugin
<a name="contributing"></a> Contributing
- Fork the repository
- Create a named feature branch (like
add_component_x
) - Write you change
- Test it by running
rake kitchen:all
- Submit a Pull Request
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
CHANGELOG for golang
This file is used to list changes made in each version of golang.
1.4.0:
- Add build action to LWRP
- Update default go version to 1.2.2
- Add autodetection the platform architecture
- Change package location to http://golang.org/dl/
1.3.0:
1.2.0:
1.1.0:
- Added package LWRP
- Configurable
gopath
&gobin
1.0.2:
- Lets users easily specify another install dir
1.0.1:
- Avoid extra unpacked copy of Go
1.0.0:
- Initial release of golang
Collaborator Number Metric
1.7.0 passed this metric
Contributing File Metric
1.7.0 passed this metric
Foodcritic Metric
1.7.0 failed this metric
FC064: Ensure issues_url is set in metadata: golang/metadata.rb:1
FC065: Ensure source_url is set in metadata: golang/metadata.rb:1
FC066: Ensure chef_version is set in metadata: golang/metadata.rb:1
FC069: Ensure standardized license defined in metadata: golang/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:21
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:44
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:77
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.7.0 passed this metric
Testing File Metric
1.7.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.0 passed this metric
1.7.0 passed this metric
1.7.0 passed this metric
Foodcritic Metric
1.7.0 failed this metric
FC064: Ensure issues_url is set in metadata: golang/metadata.rb:1
FC065: Ensure source_url is set in metadata: golang/metadata.rb:1
FC066: Ensure chef_version is set in metadata: golang/metadata.rb:1
FC069: Ensure standardized license defined in metadata: golang/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:21
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:44
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:77
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.7.0 passed this metric
Testing File Metric
1.7.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.0 passed this metric
1.7.0 failed this metric
FC065: Ensure source_url is set in metadata: golang/metadata.rb:1
FC066: Ensure chef_version is set in metadata: golang/metadata.rb:1
FC069: Ensure standardized license defined in metadata: golang/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:21
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:44
FC085: Resource using new_resource.updated_by_last_action to converge resource: golang/providers/package.rb:77
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.7.0 passed this metric
Testing File Metric
1.7.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.0 passed this metric
1.7.0 failed this metric
1.7.0 passed this metric