cookbook 'golang', '= 6.0.0'
golang
(53) Versions
6.0.0
-
-
7.0.0
-
6.0.0
-
5.4.22
-
5.4.21
-
5.4.20
-
5.4.19
-
5.4.18
-
5.4.17
-
5.4.16
-
5.4.15
-
5.4.14
-
5.4.13
-
5.4.12
-
5.4.11
-
5.4.10
-
5.4.9
-
5.4.8
-
5.4.7
-
5.4.6
-
5.4.5
-
5.4.4
-
5.4.3
-
5.4.2
-
5.4.1
-
5.4.0
-
5.3.3
-
5.3.2
-
5.3.1
-
5.3.0
-
5.2.0
-
5.1.0
-
5.0.1
-
5.0.0
-
4.1.1
-
4.1.0
-
4.0.0
-
3.0.1
-
3.0.0
-
2.0.0
-
1.7.2
-
1.7.1
-
1.7.0
-
1.6.2
-
1.5.1
-
1.5.0
-
1.4.0
-
1.3.0
-
1.2.0
-
1.1.2
-
1.1.1
-
1.1.0
-
1.0.2
-
1.0.1
Follow23
- 7.0.0
- 6.0.0
- 5.4.22
- 5.4.21
- 5.4.20
- 5.4.19
- 5.4.18
- 5.4.17
- 5.4.16
- 5.4.15
- 5.4.14
- 5.4.13
- 5.4.12
- 5.4.11
- 5.4.10
- 5.4.9
- 5.4.8
- 5.4.7
- 5.4.6
- 5.4.5
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.3
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.1
- 5.0.0
- 4.1.1
- 4.1.0
- 4.0.0
- 3.0.1
- 3.0.0
- 2.0.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
Provides custom resources to install Go and Go packages
cookbook 'golang', '= 6.0.0', :supermarket
knife supermarket install golang
knife supermarket download golang
Golang (Go) Cookbook
Description
Chef cookbook for the Go programming language.
Requirements
Platform
- AlmaLinux >= 8
- Amazon Linux >= 2
- CentOS Stream >= 9
- Debian >= 12
- Fedora latest
- Oracle Linux >= 8
- Red Hat Enterprise Linux >= 8
- Rocky Linux >= 8
- Ubuntu >= 22.04
Usage
This cookbook no longer ships recipes or attributes. See [migration.md](migration.md) for the
breaking change from recipe[golang] and node['golang'] attributes to custom resources.
Install Go
golang 'default'
Install Go as a workspace user
golang 'default' do owner 'golang' group 'golang' end
Install Go package binaries
golang_package 'golang.org/x/example/hello' do owner 'golang' group 'golang' end
Resources
- [golang](documentation/golang_golang.md)
- [golang_package](documentation/golang_package.md)
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
CHANGELOG for golang
This file is used to list changes made in each version of golang.
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
6.0.0 (2026-05-13)
⚠ BREAKING CHANGES
- migrate golang to custom resources (#153)
- Requires Chef >= 14.0.0
Features
- Allow different versions for source/package (06bde5e)
- Install binary w/ ark, simplify source build (59abc22)
- migrate golang to custom resources (#153) (04c8575)
- Update default to Golang 1.14.4 (96e1dad)
- Use build_essential resource (779a9c5)
Bug Fixes
- Add final step to CI GH Actions (3a45ae1)
- ci: Update workflows to use release pipeline (#147) (71b56a8)
- Clean up code per cookstyle (89e8fcd)
- Drop unnecessary default actions (ae264c6)
- Omit SCM package bzr on CentOS 8 (613f4c8)
- Remove deleted attribute from Kitchen config (f9d65c4)
- Remove duplicate attribute declarations (462f75f)
- Remove symlink to de-dupe tests (113fa2e)
- Set $PATH so defaults are last (3e40918)
- Set SCM packages via attribute & update apt (2a7d333)
- Update locations of hello example & go-check (f9a3af1)
- Update URL for Golang itself (86c22bd)
- Use cookbook name consistently (b44e332)
5.4.23 (2025-10-15)
Bug Fixes
5.4.21 - 2024-11-18
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
5.4.20 - 2024-07-15
Standardise files with files in sous-chefs/repo-management
5.4.19 - 2024-05-23
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
5.4.11 - 2023-04-07
Standardise files with files in sous-chefs/repo-management
5.4.8 - 2023-04-01
Standardise files with files in sous-chefs/repo-management
5.4.7 - 2023-03-20
Standardise files with files in sous-chefs/repo-management
5.4.6 - 2023-03-15
Standardise files with files in sous-chefs/repo-management
5.4.4 - 2023-02-23
Standardise files with files in sous-chefs/repo-management
5.4.2 - 2023-02-15
Standardise files with files in sous-chefs/repo-management
5.4.1 - 2022-12-15
Standardise files with files in sous-chefs/repo-management
5.4.0 - 2022-08-08
- Use
node['golang']['install_dir']attribute in default recipe. - Fix source installation issues
5.3.3 - 2022-08-07
Standardise files with files in sous-chefs/repo-management
5.3.2 - 2022-02-09
- Remove delivery and move to calling RSpec directly via a reusable workflow
- Update tested platforms
- Standardise files with files in sous-chefs/repo-management
5.3.1 - 2021-08-30
- Standardise files with files in sous-chefs/repo-management
5.3.0 - 2021-07-15
- Fix
unified_modedeclaration - Bump
arkdependency to one withunified_modeset
5.2.0 - 2021-06-04
- Update example package to adhere with modern Go standards
5.1.0 - 2021-06-03
- Fix resource to use the correct path in GOPATH profile.d template
5.0.1 - 2021-06-01
- Standardise files with files in sous-chefs/repo-management
5.0.0 - 2021-05-21
- Require chef 15.3 or greater
- Use unified_mode for chef 17 support
4.1.1 - 2021-02-03
- Use
node['golang']['scm']andnode['golang']['scm_packages']attributes in default recipe.
4.1.0
- Create a custom resource to install Go from source or by downloading a package
4.0.0
- Update testing setup:
- Use Chef Workstation instead of Rubygems
- Includes dropping
foodcriticin favor of currentcookstyle - Add more recent & current distro versions
- Add very basic unit tests
- Use GitHub Actions instead of Travis CI
- Refactor minitest to Inspec
- Refactor to use current style of Chef Custom Resource
- Update default version to Go v1.14.4
- Use
build_essentialwhen building from source- Requires Chef >= 14.0.0
- Omit attempting to install
bzron CentOS 8, they do not have that package available - Utilize default Chef order-of-operations instead of
notifies - Use
arkresource to simplify download & installation of binary & source - Clean up unnecessary env vars from source build
- Build from source per official Go docs
- Use native resources instead of shell commands when building from source
- Set
$PATHingolang.shso that the existing values are last, per general practice - Tighten up
golang_packageso it does not perform actions at compile time, it usesexecutein favor ofbashresources, and in general is more Chef-y - Update tests to validate that non-root users can install Go and Go packages
- Refactor attributes to add ability to install a version from source that differs from the packaged version (which is needed to build from source)
3.0.0
- rename to
chef-golangso that metadata name matches repositoriy name
2.0.0
- change attribute namespace to
node['golang']
1.7.2
- Better chef12,13 support
- Ruby 2.3
- Update gems, lint
1.7.1
- Create a temporary directory
1.7.0
- Golang 1.5
1.6.2
- Ability to install from source
1.6.0
- Removed support for Ruby 1.9.3
1.5.1
- Fix testing with Vagrant, Test-Kitchen
- Golang 1.4
1.5.0
- Golang 1.3
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.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
6.0.0 passed this metric
Contributing File Metric
6.0.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 CONTRIBUTING.md file
Cookstyle Metric
6.0.0 passed this metric
No Binaries Metric
6.0.0 passed this metric
Testing File Metric
6.0.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
6.0.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 include a tag that matches this cookbook version number
6.0.0 passed this metric
6.0.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 CONTRIBUTING.md file
Cookstyle Metric
6.0.0 passed this metric
No Binaries Metric
6.0.0 passed this metric
Testing File Metric
6.0.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
6.0.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 include a tag that matches this cookbook version number
6.0.0 passed this metric
6.0.0 passed this metric
Testing File Metric
6.0.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
6.0.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 include a tag that matches this cookbook version number
6.0.0 failed this metric
6.0.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 include a tag that matches this cookbook version number