-
-
Notifications
You must be signed in to change notification settings - Fork 2k
package --all with :path => "../../relative_link" #2903
Comments
I'm not sure if package --all supports path gems. IIRC, path gems are always left entirely alone and managing them is just up to you. On Tue, Feb 25, 2014 at 2:45 AM, Lele Forzani [email protected]
|
In the example
|
:path during packaging should only be one of the many sources from where to retrieve the gems. After the bundle is made they should behave like the other gems. IMHO bundler is misbehaving in this respect. |
It sounds like this is a bug in path. If the cache contains and the lock points to |
Closed because a patch has been committed or because this bug became a "feature" ? |
Asking if this bug became a "feature" is totally unwarranted. Just ask your question, don't be mean about it. My last comment was never responded to by anyone, so it's not even clear if this is a current bug. Are you still having this issue? If you are, feel free to patch it or let us know it's still a problem. |
To be honest, I'm not sure how this even could work without violating someone's expectations about how Bundler works. Let's say On the other hand, if it always runs from the original location, Bundler can no longer make the guarantee that you're running the same code in development and production when you put the packaged code onto another machine, because you may not have re-packaged the gem after changing it in the original location. With git gems, it locks to a commit hash, but with path gems, there's no checksum or anything else happening, so it just runs whatever is there. AFAIK, the path feature was intended to be used on gems already vendored inside the project directory. Using it on an external path totally breaks Bundler's promise. I agree that there's a bug here, if the behaviour originally described is still happening, but it's not clear at all to me how to resolve it. In any case, this is a duplicate of #2175. |
I am encountering an issue related to #2494, when trying to
package --all
and relative links are in the Gemfile.It only happens when the
:path
is outside the application and it's going to be missing at the deployment phase. As far as I understand, if it isn't my fault, it is still looking for the non-cached path, breaking the whole point ofpackage --all
.The text was updated successfully, but these errors were encountered: