You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the repository does not provide a package-lock.json. Therefore there is no way to reproduce the exact dependency set as used to build the provided release.
Please consider providing the package-lock.json used to create release, by either make them part of the release source distribution or by manage it as part of the repository (the later is preferred).
This would also enable other benefits like caching of node_modules on CI by hashing the lock file.
I have been attempting to install CNCJS on a Raspberry PI without success. There is a sea of NMP/Node.js version incompatibilities and warnings of missing packages using any of the installation instructions that I have found. Would the json file resolve my difficulties? It sounds like it might.
Best practice is as far as I know to commit yarn.lock or package-lock.json and run yarn install --frozen-lockfile or npm ci on the eh ... CI. Otherwise it's impossible to get a reproducible build with this stuff. At least that is what I beat my developers over the head with.
However there is some voodoo going on with the build that copies bits of package.json into another one in src/ - unsure what all that's about.
I had to update the Appveyor/CI NodeJS version from 12 to 14 in order to get builds to pass. This might cause some distribution problems - the unit tests appear to pass, but OS integration will need manual confirmation.
If somebody wants to try building and running with this package-lock.json that would be a great help. I'll see if I can tag and trigger a build for testing.
One of the problems with package-lock.json is that npm install will update it :)
It's a natural part of distributed development that this file is updated by the people working on the project and committed together with their changes.
CI though, shouldn't generally alter or produce a lock file in and of itself.
I have a sneaking suspicion that package-lock.json was gitignored because of the cross-platform bugs present in npm at the time (versions 5-7), eg. npm/npm#16938. If this is true we should be able to upgrade Node and NPM versions, commit a consistent package-lock.json, and still have CI build/package/publish working apps.
Activity
emcniece commentedon Dec 27, 2022
Acknowledged! I'll see if I can dig a package-lock.json out of the CI runs for a starting reference.
william-orange commentedon Dec 30, 2022
I have been attempting to install CNCJS on a Raspberry PI without success. There is a sea of NMP/Node.js version incompatibilities and warnings of missing packages using any of the installation instructions that I have found. Would the json file resolve my difficulties? It sounds like it might.
colin-campbell commentedon Jan 14, 2023
Best practice is as far as I know to commit yarn.lock or package-lock.json and run
yarn install --frozen-lockfileornpm cion the eh ... CI. Otherwise it's impossible to get a reproducible build with this stuff. At least that is what I beat my developers over the head with.However there is some voodoo going on with the build that copies bits of package.json into another one in
src/- unsure what all that's about.emcniece commentedon Jan 15, 2023
Managed to get package-lock.json out of a CI build: https://gist.github.com/emcniece/a02e5f8b129a57109efc0e931167387d
I had to update the Appveyor/CI NodeJS version from 12 to 14 in order to get builds to pass. This might cause some distribution problems - the unit tests appear to pass, but OS integration will need manual confirmation.
If somebody wants to try building and running with this package-lock.json that would be a great help. I'll see if I can tag and trigger a build for testing.
colin-campbell commentedon Jan 15, 2023
One of the problems with package-lock.json is that
npm installwill update it :)It's a natural part of distributed development that this file is updated by the people working on the project and committed together with their changes.
CI though, shouldn't generally alter or produce a lock file in and of itself.
Then we have this abomination. Which CI (or anyone/anything that actually packages a real release should produce). https://docs.npmjs.com/cli/v9/commands/npm-shrinkwrap
However if your top-level project is being used as a dependency of other projects, this file can give downstream users a real pain.
emcniece commentedon Jan 15, 2023
I have a sneaking suspicion that
package-lock.jsonwas gitignored because of the cross-platform bugs present innpmat the time (versions 5-7), eg. npm/npm#16938. If this is true we should be able to upgrade Node and NPM versions, commit a consistentpackage-lock.json, and still have CI build/package/publish working apps.Here's an in-progress PR to publish
npm-shrinkwrap.jsonas a CI artifact: https://github.com/cncjs/cncjs/compare/master...emcniece:cncjs:fix/publish-package-lock?expand=1If this works and the resulting file is the same across the 6 platform builds (https://ci.appveyor.com/project/emcniece/cncjs) then the next step might be to manually confirm that each of these builds results in functional apps in its respective platform.
cheton commentedon Jan 19, 2023
It's going to be resovled with the upcoming 1.10.x releases.