Update golang cookbook
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: mingw
|
||||
# Resource:: get
|
||||
#
|
||||
# Copyright:: 2016, Chef Software, Inc.
|
||||
# Copyright:: 2016-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -23,8 +23,6 @@
|
||||
property :package, String, name_property: true
|
||||
property :root, String, required: true
|
||||
|
||||
resource_name :mingw_get
|
||||
|
||||
action_class do
|
||||
def mingw_do_action(action_cmd)
|
||||
seven_zip_archive "fetching mingw-get to #{win_friendly_path(root)}" do
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: mingw
|
||||
# Resource:: msys2_package
|
||||
#
|
||||
# Copyright:: 2016, Chef Software, Inc.
|
||||
# Copyright:: 2016-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -19,16 +19,16 @@
|
||||
|
||||
# Installs msys2 base system and installs/upgrades packages within in.
|
||||
#
|
||||
# Where's the version flag? Where's idempotence you say? Well f*** you
|
||||
# for trying to version your product. This is arch. They live on the edge.
|
||||
# You never get anything but the latest version. And if that's broken...
|
||||
# well that's your problem isn't it? And they don't believe in preserving
|
||||
# older versions. Good luck!
|
||||
# Where's the version flag? Where's idempotence you say? Well f*** you
|
||||
# for trying to version your product. This is arch. They live on the edge.
|
||||
# You never get anything but the latest version. And if that's broken...
|
||||
# well that's your problem isn't it? And they don't believe in preserving
|
||||
# older versions. Good luck!
|
||||
|
||||
property :package, String, name_property: true
|
||||
property :root, String, required: true
|
||||
|
||||
resource_name :msys2_package
|
||||
provides :msys2_package
|
||||
|
||||
action_class do
|
||||
#
|
||||
@@ -97,7 +97,7 @@ action_class do
|
||||
cookbook 'mingw'
|
||||
end
|
||||
|
||||
# $HOME is using files from /etc/skel. The home-directory creation step
|
||||
# $HOME is using files from /etc/skel. The home-directory creation step
|
||||
# will automatically be performed if other users log in - so if you wish
|
||||
# to globally modify user first time setup, edit /etc/skel or add
|
||||
# "post-setup" steps to /etc/post-install/
|
||||
@@ -125,10 +125,10 @@ action :install do
|
||||
msys2_do_action("installing #{package}", "pacman -S --needed --noconfirm #{package}")
|
||||
end
|
||||
|
||||
# Package name is ignored. This is arch. Why would you ever upgrade a single
|
||||
# package and its deps? That'll just break everything else that ever depended
|
||||
# on a different version of that dep. Because arch is wonderful like that.
|
||||
# So you only get the choice to move everything to latest or not... it's the
|
||||
# Package name is ignored. This is arch. Why would you ever upgrade a single
|
||||
# package and its deps? That'll just break everything else that ever depended
|
||||
# on a different version of that dep. Because arch is wonderful like that.
|
||||
# So you only get the choice to move everything to latest or not... it's the
|
||||
# most agile development possible!
|
||||
action :upgrade do
|
||||
msys2_do_action("upgrading #{package}", "pacman -Syu --noconfirm #{package}")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: mingw
|
||||
# Resource:: tdm_gcc
|
||||
#
|
||||
# Copyright:: 2016, Chef Software, Inc.
|
||||
# Copyright:: 2016-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -23,8 +23,6 @@ property :flavor, Symbol, is: [:sjlj_32, :seh_sjlj_64], default: :seh_sjlj_64
|
||||
property :root, String, required: true
|
||||
property :version, String, is: ['5.1.0'], name_property: true
|
||||
|
||||
resource_name :mingw_tdm_gcc
|
||||
|
||||
tdm_gcc_64 = {
|
||||
'http://iweb.dl.sourceforge.net/project/tdm-gcc/TDM-GCC%205%20series/5.1.0-tdm64-1/gcc-5.1.0-tdm64-1-core.tar.lzma' =>
|
||||
'29393aac890847089ad1e93f81a28f6744b1609c00b25afca818f3903e42e4bd',
|
||||
|
||||
Reference in New Issue
Block a user