Open pdcastro opened 3 years ago
[pdcastro] This issue has attached support thread https://jel.ly.fish/e21343ce-0ad7-4bf2-8dc3-fc1fbcc809b0
@klutchell also reported that npmsw
does not support "the from: line to specify branches with commits not merged to master (branch must be specified in the version: line before the commit hash)".
I think an example would be:
"multicast-dns": {
"version": "git+https://github.com/resin-io-modules/multicast-dns.git#a15c63464eb43e8925b187ed5cb9de6892e8aacc",
"from": "git+https://github.com/resin-io-modules/multicast-dns.git#listen-on-all-interfaces",
...
},
@pdcastro correct, the workaround is to inject ;branch=
into the version:
string since as far as I can tell the from:
string is completely ignored and it looks for the commit in the primary branch.
"multicast-dns": {
"version": "git+https://github.com/resin-io-modules/multicast-dns.git;branch=listen-on-all-interfaces#a15c63464eb43e8925b187ed5cb9de6892e8aacc",
"from": "git+https://github.com/resin-io-modules/multicast-dns.git#listen-on-all-interfaces",
...
},
This may break a normal npm install since the ;branch=
syntax is from bitbake. Another reason we probably don't want to support these changes and would be better to patch bitbake upstream.
Users trying to build the CLI in a Yocto image reported errors regarding the
github
style URLs in the CLI'snpm-shrinkwrap.json
file:https://forums.balena.io/t/balena-cli-compilation-issues-in-yocto/252703
Github URL formats supported by the standard npm tool are documented at: https://docs.npmjs.com/cli/v6/commands/npm-install
Consider making the URLs in the CLI's
npm-shrinkwrap.json
file "conform to the older standard" in order to be compatible with bitbake / Yocto.