Skip to content

Commit

Permalink
omnibus cache: disable for OCI builds (#25088)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette authored and alexgallotta committed May 9, 2024
1 parent 3b5fd95 commit 143963c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omnibus/config/projects/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
COMPRESSION_LEVEL = 5
end

if ENV.has_key?("OMNIBUS_GIT_CACHE_DIR")
BUILD_OCIRU = Omnibus::Config.host_distribution == "ociru"

if ENV.has_key?("OMNIBUS_GIT_CACHE_DIR") && !BUILD_OCIRU
Omnibus::Config.use_git_caching true
Omnibus::Config.git_cache_dir ENV["OMNIBUS_GIT_CACHE_DIR"]
end

BUILD_OCIRU = Omnibus::Config.host_distribution == "ociru"

if windows_target?
# Note: this is the path used by Omnibus to build the agent, the final install
# dir will be determined by the Windows installer. This path must not contain
Expand Down

0 comments on commit 143963c

Please sign in to comment.