Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unversioned dependency problem on locked dependencies project #44

Closed
atilafassina opened this issue Jan 21, 2015 · 11 comments
Closed

unversioned dependency problem on locked dependencies project #44

atilafassina opened this issue Jan 21, 2015 · 11 comments
Assignees

Comments

@atilafassina
Copy link

Hello!

I might a problem using svg-sprite with grunt-svg-sprite when locking dependencies with npm shrinkwrap

on package.json, line 38 there's defined lodash as a dependency without version

"lodash": "lodash/lodash",

On grunt-svg-sprite dependencies, it generated with a git+https path, that would download any version, as far as I understand... possibly breaking the plugin if any major changes happen.

 "lodash": "git+https://github.com/lodash/lodash",

And, after locking dependencies with shrinkwrap it generates a relative path that's not working when I'm testing on different environments.

"from": "../../../../../../../var/folders/9f/39z7bx0s7sjgx9bqf1yqdjmh0000gn/T/npm-36893-3e27cd04/1421851729890-0.2797100490424782/ef3f0a0bb9f032d2eb3559fe9bcb5f49668c6f5f",

Does this all makes sense to you?
If so, I imagine the simplest solution would be to determine a version for lodash here, right?

@jkphl jkphl added the question label Jan 21, 2015
@jkphl jkphl self-assigned this Jan 21, 2015
@jkphl
Copy link
Collaborator

jkphl commented Jan 21, 2015

Hi @atilafassina,

thanks for your report. First of all, I have to say that I have no clue of shrinkwrap at all and I didn't test it during development.

Furthermore, when I was writing svg-sprite at around christmas, lodash was available in version 2.41, but I was relying on functionality that would be introduced with the upcoming v3.0, so I had to use the unversioned dependency to enforce the use of the latest sources from GitHub.

I just realized that the v3.0 of lodash is available since monday, so I'll happily go and update my dependency as soon as possible. I'll push out another release probably tonight or tomorrow.

Cheers,
Joschi

@atilafassina
Copy link
Author

wow! Thanks a lot, @jkphl
That's probably gonna do the trick!!

After your commit, I'll test again and post the feedback here...

@jkphl
Copy link
Collaborator

jkphl commented Jan 21, 2015

You're welcome. Well, it looks like there's no official v3.0 NPM package yet. Will need to wait for that one. Stay tuned. ;)

@atilafassina
Copy link
Author

👍 ok!
I'll keep an eye on that as well.

@jkphl
Copy link
Collaborator

jkphl commented Jan 22, 2015

Seems we'll have to wait until next Monday: https://twitter.com/jdalton/status/558308326862098432

@atilafassina
Copy link
Author

Yeah... took some while more,
but it's released =)

@jkphl
Copy link
Collaborator

jkphl commented Jan 26, 2015

Thanks for the heads up. Will try to push out another release tonight! :)

@atilafassina
Copy link
Author

👍 thanks a lot!

jkphl added a commit that referenced this issue Jan 26, 2015
@jkphl
Copy link
Collaborator

jkphl commented Jan 26, 2015

The new release is out — hope this works for you now! :)

@jkphl jkphl closed this as completed Jan 26, 2015
@atilafassina
Copy link
Author

It did the trick! 🎉
Thanks a lot @jkphl

@jkphl
Copy link
Collaborator

jkphl commented Jan 27, 2015

You're welcome! Thanks for the feedback. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants