This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Windows lockfiles to match gemfile
- Loading branch information
Showing
14 changed files
with
247 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# We ensure everything in windows is pinned to the same version as "generic" | ||
# by reading the generic Gemfile.lock and pinning to that version in the Gemfile. | ||
# | ||
# This could *almost* be accomplished by simply copying the lockfile and doing a | ||
# `bundle install` to add any windows dependencies, but bundler can still update | ||
# existing versions in a couple of cases: | ||
# | ||
# 1. When the source has changed since the main lockfile was built. | ||
# 2. When Windows-specific dependencies constrain our solution. | ||
# | ||
# We do NOT allow windows gem versions to differ from non-windows, so that our | ||
# packages are consistent across operating systems. | ||
# | ||
# At the end of this process, this `Gemfile`: | ||
# | ||
# ``` | ||
# gem 'chef', github: 'chef/chef' | ||
# gem 'berkshelf' | ||
# ``` | ||
# | ||
# Is transformed to something like this: | ||
# | ||
# ``` | ||
# gem 'chef', github: 'chef/chef', ref: '23049723984237948023' | ||
# gem 'berkshelf', '= 2.0.5' | ||
# gem 'ohai', '= 12.9.30' # implicit dependency of chef | ||
# ``` | ||
# | ||
|
||
require_relative "tasks/gemfile_util" | ||
extend GemfileUtil | ||
generic_gemfile = File.expand_path("../Gemfile", __FILE__) | ||
puts "Reading locks from #{generic_gemfile} to fill in #{__FILE__}" | ||
include_locked_gemfile(generic_gemfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# gem installs this gem from the version specified in chef-dk's Gemfile.lock | ||
# so we can take advantage of omnibus's caching. Just duplicate this file and | ||
# add the new software def to chef-dk software def if you want to separate | ||
# another gem's installation. | ||
require_relative "../../files/chef-dk-gem/build-chef-dk-gem/gem-install-software-def" | ||
BuildChefDKGem::GemInstallSoftwareDef.define(self, __FILE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.