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

"core" folder missing on NPM registry #24

Closed
TheOptimisticFactory opened this issue Feb 13, 2019 · 6 comments
Closed

"core" folder missing on NPM registry #24

TheOptimisticFactory opened this issue Feb 13, 2019 · 6 comments

Comments

@TheOptimisticFactory
Copy link

TheOptimisticFactory commented Feb 13, 2019

Greetings,

The Pull-Request n°8 got one of our Lerna projects broken due to a folder named "/lib/core" being missing on the NPM registry.

After some debugging, I have tracked the origin of the missing folder to the aforementioned PR.
The missing folder has nothing to do with a Linux core dump but instead contains the core components of the private tool we are hosting on NPM.

For the time being, we worked around the issue by adding !/lib/core in the local folder of the tool so that it overrides the default blacklist.

An option to disable that behavior would be nice as mentioned in the PR itself: #8 (comment)

@RomainMuller
Copy link

Also affected as this was factored in npm@6.8.0. This was an extremely surprising change and I would expect it to breaks tuff somewhat pervasively.

RomainMuller added a commit to aws/aws-cdk that referenced this issue Feb 14, 2019
Since the release of `npm@6.8.0`, a version of `npm-packlist` is
included that introduces a behavior to ignore anything named "core" by
default.

Added `!core` to the `.npmignore` file as a work around, and also more
strictly pinned the `npm` version to auto-upgrade to so we don't get
surprised in this kind of way anymore.

Cause: npm/npm-packlist#24
RomainMuller added a commit to aws/aws-cdk that referenced this issue Feb 14, 2019
Since the release of `npm@6.8.0`, a version of `npm-packlist` is
included that introduces a behavior to ignore anything named "core" by
default.

Added `!core` to the `.npmignore` file as a work around, and also more
strictly pinned the `npm` version to auto-upgrade to so we don't get
surprised in this kind of way anymore.

Cause: npm/npm-packlist#24
@shadowspawn
Copy link

shadowspawn commented Feb 15, 2019

Some comments on the core changes:

  1. the README here and the corresponding info in npm-developers have not been updated to mention core.

  2. I expect the intent of the change is to exclude files named core but it also matches folders named core. I wonder whether can achieve that with something like "core", "!core/" early in default exclude list. (Probably too messy even if possible.)

@shadowspawn
Copy link

The core change can also affect installs such as from github, and not just npm pack and npm publish: https://npm.community/t/npm-pack-leaving-out-files-6-8-0-only/5382/7

@AitorGuerrero
Copy link

I have a "common" utils repo required through git in almost all my microservices, (basically, types and some classes to ease the communication between them). Suddenly, all my classes and types from the "core" service disappeared in my services.

I think this behaviour should be undone as it breaks functional code, and is included in a minor update.

@isaacs
Copy link
Contributor

isaacs commented Feb 18, 2019

I agree this is probably not worthwhile to include core in the list of default exclusions.

I'm talking to the team and suggesting that we back that name out of the list in the next release.

In the meantime, anyone affected by this can either add core to the package.json files list, or create a .npmignore file containing !core, as a workaround.

@isaacs isaacs closed this as completed in 1cd776c Feb 18, 2019
aeschright pushed a commit to npm/cli that referenced this issue Feb 19, 2019
@LvChengbin
Copy link

It's really a surprise.

notgne2 added a commit to eden-js/cli that referenced this issue Mar 3, 2019
notgne2 added a commit to eden-js/cli that referenced this issue Mar 4, 2019
shaka-bot pushed a commit to shaka-project/shaka-player that referenced this issue Jul 25, 2020
According to npm/npm-packlist#24, a certain
release of NPM started ignoring files named "core" implicitly, which
broke the build system in our release packages starting with v2.5.11.

This works around the issue by asking NPM explicitly _not_ to ignore
that file.

Closes #2752

Change-Id: I7d9fb45abe6cd70e02fc4bb14a08126f93b4cc0a
joeyparrish added a commit to shaka-project/shaka-player that referenced this issue Jul 27, 2020
According to npm/npm-packlist#24, a certain
release of NPM started ignoring files named "core" implicitly, which
broke the build system in our release packages starting with v2.5.11.

This works around the issue by asking NPM explicitly _not_ to ignore
that file.

Closes #2752

Change-Id: I7d9fb45abe6cd70e02fc4bb14a08126f93b4cc0a
joeyparrish added a commit to shaka-project/shaka-player that referenced this issue Jul 27, 2020
According to npm/npm-packlist#24, a certain
release of NPM started ignoring files named "core" implicitly, which
broke the build system in our release packages starting with v2.5.11.

This works around the issue by asking NPM explicitly _not_ to ignore
that file.

Closes #2752

Change-Id: I7d9fb45abe6cd70e02fc4bb14a08126f93b4cc0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants