Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #642 from chef/ksubrama/exclude
Browse files Browse the repository at this point in the history
Don't sync vendor/bundler directory under omnibus
  • Loading branch information
Kartik Null Cating-Subramanian committed Jan 12, 2016
2 parents e8edcc3 + 848a88a commit 5ae3f6a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions omnibus/config/software/chefdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@
# For the specific super-special version "local_source", build the source from
# the local git checkout. This is what you'd want to occur by default if you
# just ran omnibus build locally.
version("local_source") { source path: "#{project.files_path}/../.." }
#TODO: Check if I need to exclude any current omnibus generated files.
# options: {:exclude => [some paths]}
version("local_source") do
source path: "#{project.files_path}/../.."
# Since we are using the local repo, we try to not copy any files
# that are generated in the process of bundle installing omnibus.
# If the install steps are well-behaved, this should not matter
# since we only perform bundle and gem installs from the
# omnibus cache source directory, but we do this regardless
# to maintain consistency between what a local build sees and
# what a github based build will see.
options: { exclude: [ "omnibus/vendor" ] }
end

# For any version other than "local_source", fetch from github.
# This is the behavior the transitive omnibus software deps such as chef-dk
# expect.
if version != "local_source"
source git: "git://github.com/chef/chef-dk.git"
end
Expand Down

0 comments on commit 5ae3f6a

Please sign in to comment.