-
Notifications
You must be signed in to change notification settings - Fork 15
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
Inability to use versionist
installed modules under Linux (works on OSX)
#82
Comments
Bug / discrepancy between NodeJS on Linux and NodeJS on OSX? |
Possibly, but I had a quick scan and couldn't find anything obvious. Will have another look later, but it's a pretty big bug if it is! |
Off-Topic: I'm already suspecting there's a bug in the Windows version of |
I've realised why this does and doesn't work. Node has a bottom-up approach to finding dependencies without a relative path (ie. the use of I think the upshot is we have to say 'you can't include non-core modules in your own |
Ah, so this was actually a filesystem-layout issue rather than an OS-issue?
...unless you have a local |
I don't like the idea of only being able to version a fully populated repo instead of a cloned one. If this isn't the case, we need to discuss fundamentally how we should cope with cases like this. cc @agherzan as we'll need to determine how to go forward here. |
Isn't this a major limitation? I'm not a npm expert, but what modules are in the npm core? I don't know how I would be able to implement the version file change for non package.json cases. |
Going to re-open so we can continue to discuss this. The problem is that even if What exactly needs to change to support |
This is what's needed to be bumped: https://github.com/resin-os/meta-resin/blob/master/meta-resin-common/conf/distro/include/resin-os.inc#L6 . |
For cases where the version-bump can't be done in JS using core nodeJS libraries, could versionist instead call an external executable / shell-script? (or would that cause problems for VersionBot?) |
I'm not at all keen on VersionBot doing any of the version bumping. Whilst there are ways we can go about this (git submodules, actual |
Last I heard, there was talk of merging VersionBot and versionist together, rather than maintaining them as separate projects? Sorry I've not been keeping up ;-) |
Ah, maybe that was an off the cuff. Nope, still separate projects but with a |
Versions used:
Run
versionist
on the following config file in a repo with no Node deps. (ie. nonode_modules
directory):Under OSX, it appears to pick
semver
fromversionist
'snode_modules
. Under Linux it doesn't failing torequire
the config file from theexports.load
method:Either we should work on both platforms, or we should specify that external packages to those built-in to Node cannot be used.
The text was updated successfully, but these errors were encountered: