Comments (2)
To solve this, we link the foreign Gemfile
in our Gemfile
.
Example: https://github.com/ManageIQ/manageiq-api/blob/master/Gemfile#L12, though you can find this code in pretty much all the ManageIQ/manageiq-provider-* entries.
The correct link gets setup here: https://github.com/ManageIQ/manageiq-api/blob/master/bin/before_install#L16
$ cd project
$ MANAGEIQ_REPO=~/src/manageiq ./bin/setup # ln -s ~/src/manageiq spec/manageiq
$ tail -2 Gemfile
eval_gemfile(File.expand_path("spec/manageiq/Gemfile", __dir__))
It is stored in the before_install
for use by travis. It has since been migrated to github actions.
not sure if git submodules or an ignored .bundler.d and a symbolic link / git checkout a single file from a common repository would work for you.
from bundler-inject.
@Whirlwind Yeah, I think eval_gemfile
is more the way to go. bundler-inject is more about overriding things in existing Gemfiles, but it sounds like your request is more to completely use a different Gemfile base.
from bundler-inject.
Related Issues (8)
- Test against multiple bundler versions in CI
- Use `Bundler::Settings` for `warn_override_gem` HOT 2
- Ensure gem with require doesn't actually require the gem HOT 4
- override_gem doesn't override a transient dependency HOT 7
- Bundler fails on production with the plugin added HOT 2
- Dependency Dashboard
- overriding gem breaks gemspec HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundler-inject.