summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-20 16:07:08 -0600
committermo khan <mo.khan@gmail.com>2020-06-20 16:07:08 -0600
commita808a2fc52e501aad1143a0ddf7d62d67b374436 (patch)
treec7c8d4e3703a04f9a082d4a30840dfadede2ede7
parentaa3fcf781a1ee79addce7afb2fc4c7498a2be822 (diff)
Pin to specific version of asdf
-rw-r--r--config/software/asdf-ruby.rb7
-rw-r--r--config/software/preparation.rb10
2 files changed, 11 insertions, 6 deletions
diff --git a/config/software/asdf-ruby.rb b/config/software/asdf-ruby.rb
index be3aadc..106e407 100644
--- a/config/software/asdf-ruby.rb
+++ b/config/software/asdf-ruby.rb
@@ -8,10 +8,10 @@ skip_transitive_dependency_licensing true
default_version "2.7.1"
-dependency "zlib"
-dependency "openssl"
dependency "libffi"
dependency "libyaml"
+dependency "openssl"
+dependency "zlib"
version("2.7.1") { source sha256: "d418483bdd0000576c1370571121a6eb24582116db0b7bb2005e90e250eae418" }
version("2.7.0") { source sha256: "8c99aa93b5e2f1bc8437d1bbbefd27b13e7694025331f77245d0c068ef1f8cbe" }
@@ -25,8 +25,9 @@ version("2.6.1") { source sha256: "17024fb7bb203d9cf7a5a42c78ff6ce77140f9d083676
version("2.6.0") { source sha256: "f3c35b924a11c88ff111f0956ded3cdc12c90c04b72b266ac61076d3697fc072" }
version("2.5.8") { source sha256: "6c0bdf07876c69811a9e7dc237c43d40b1cb6369f68e0e17953d7279b524ad9a" }
-version("2.4.5") { source sha256: "6737741ae6ffa61174c8a3dcdd8ba92bc38827827ab1d7ea1ec78bc3cefc5198" }
+
version("2.4.10") { source sha256: "93d06711795bfb76dbe7e765e82cdff3ddf9d82eff2a1f24dead9bb506eaf2d0" }
+version("2.4.5") { source sha256: "6737741ae6ffa61174c8a3dcdd8ba92bc38827827ab1d7ea1ec78bc3cefc5198" }
source url: "https://cache.ruby-lang.org/pub/ruby/#{version.match(/^(\d+\.\d+)/)[0]}/ruby-#{version}.tar.gz"
diff --git a/config/software/preparation.rb b/config/software/preparation.rb
index bf3401d..231cd5a 100644
--- a/config/software/preparation.rb
+++ b/config/software/preparation.rb
@@ -1,16 +1,20 @@
name "preparation"
description "the steps required to prepare the build"
-default_version "0.7.8"
-source url: "https://github.com/asdf-vm/asdf/archive/v0.7.8.tar.gz", md5: 'c64fe16441d639669a6bf56a860e0eb4'
-relative_path "asdf-#{version}"
+default_version "v0.7.8"
+relative_path "asdf-#{version[1..-1]}"
license_file "#{project_dir}/LICENSE"
#skip_transitive_dependency_licensing true
+version("v0.7.8") { source md5: "c64fe16441d639669a6bf56a860e0eb4" }
+
+source url: "https://github.com/asdf-vm/asdf/archive/#{version}.tar.gz"
+
build do
block do
sync "#{project_dir}/bin", "#{install_dir}/bin"
sync "#{project_dir}/lib", "#{install_dir}/lib"
+ copy "#{project_dir}/LICENSE", "#{install_dir}/LICENSE"
command "echo 'legacy_version_file = yes' > #{install_dir}/defaults"
touch "#{install_dir}/installs/.keep"
touch "#{install_dir}/plugins/.keep"