grpc-node icon indicating copy to clipboard operation
grpc-node copied to clipboard

package.json for grpc-tools missing license field

Open krisselden opened this issue 2 years ago • 5 comments

Problem description

The published package for grpc-tools missing license field and package is missing LICENSE file from repo

Reproduction steps

View package on https://www.npmjs.com/package/grpc-tools

It is missing https://github.com/grpc/grpc-node/blob/master/packages/grpc-tools/LICENSE and https://github.com/grpc/grpc-node/blob/master/packages/grpc-tools/README.md

Looks like it should include it https://github.com/grpc/grpc-node/blob/master/packages/grpc-tools/package.json#L41

Likely issue is it staged into a temp dir and packaged up from that.

krisselden avatar Oct 28 '23 02:10 krisselden

If I npm install grpc-tools, I see the LICENSE and README.md files in node_modules/grpc-tools and they both contain the expected content. The grpc-tools page on the npm website contains the text of the README.md file, and the code explorer there shows LICENSE in the list of files.

Cannot reproduce.

murgatroid99 avatar Oct 30 '23 19:10 murgatroid99

@murgatroid99 the package.json in the tarball that is published to NPM does not have it. I know it is in the repo, I linked to it.

krisselden avatar Nov 20 '23 20:11 krisselden

If you look at the page in NPM, it says license: none

krisselden avatar Nov 20 '23 20:11 krisselden

https://docs.npmjs.com/cli/v10/configuring-npm/package-json#license

To clarify, because companies validate license field for compliant open source license and I had to get this library manually verified.

krisselden avatar Nov 20 '23 20:11 krisselden

The original issue said that the LICENSE and README.md files are not present in the tarball. They are in fact present, which is why I closed the issue. The problem you described after that is a different one: that the published package.json file does not have a "license" field. That is a separate thing from including the LICENSE file in the "files" list.

murgatroid99 avatar Nov 27 '23 14:11 murgatroid99