From a3bd692f691e84cd285f693bdfd3b728dc30341f Mon Sep 17 00:00:00 2001 From: amaury ravanel Date: Mon, 23 May 2022 13:04:05 +0200 Subject: [PATCH] fix packages installation --- CHANGELOG.md | 4 +++- resources/package.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f87f8b..831bf30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ This file is used to list changes made in each version of golang. ## Unreleased +- Use go install rather than go get to install packages through node attributes + ## 5.4.0 - *2022-08-08* - Use `node['golang']['install_dir']` attribute in default recipe. @@ -11,7 +13,7 @@ This file is used to list changes made in each version of golang. ## 5.3.3 - *2022-08-07* -Standardise files with files in sous-chefs/repo-management +- Standardise files with files in sous-chefs/repo-management ## 5.3.2 - *2022-02-09* diff --git a/resources/package.rb b/resources/package.rb index 8ef4e71..0169ad0 100644 --- a/resources/package.rb +++ b/resources/package.rb @@ -24,7 +24,7 @@ gocache = '/tmp/go' action :install do - execute "go get #{new_resource.name}" do + execute "go install #{new_resource.name}" do user node['golang']['owner'] group node['golang']['group'] environment({