Git Product home page Git Product logo

Comments (3)

deivid-rodriguez avatar deivid-rodriguez commented on June 16, 2024 1

Hi @sue445, thanks for reporting this issue in such a clear way.

The issue is specific to setting the BUNDLE_APP_CONFIG environment variable, like the docker images do, and should be fixed by the following patch:

diff --git a/lib/bundler.rb b/lib/bundler.rb
index df345539c8..3d8d951086 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -285,7 +285,13 @@ module Bundler
 
     def app_config_path
       if app_config = ENV["BUNDLE_APP_CONFIG"]
-        Pathname.new(app_config).expand_path(root)
+        app_config_pathname = Pathname.new(app_config)
+
+        if app_config_pathname.absolute?
+          app_config_pathname
+        else
+          app_config_pathame.expand_path(root)
+        end
       else
         root.join(".bundle")
       end

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 16, 2024 1

#7622 should fix this!

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 16, 2024

By the way, the correct expectation here is that all configs are actually stored to /usr/local/bundle/config, because what BUNDLE_APP_CONFIG does is to change the location to the local configuration to the value set in there.

from bundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.