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

Dist folder is missing in https://github.com/protobufjs/protobuf.js/archive/refs/tags/protobufjs-v7.1.0.zip #1794

Closed
basgroot opened this issue Aug 27, 2022 · 6 comments

Comments

@basgroot
Copy link
Contributor

protobuf.js version: 7.1.0

  1. Go to release page https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.1.0
  2. Download zip.

Expected:
Dist folder in downloaded archive (with protobuf.js and protobuf.min.js), like there was one in https://github.com/protobufjs/protobuf.js/archive/refs/tags/protobufjs-v7.0.0.zip

Actual:
No dist folder in the archive.

Maybe I'm looking at the wrong place. Then I'd like to have some guidance.

Thanks!

@basgroot
Copy link
Contributor Author

@alexander-fenster
Copy link
Contributor

Yeah we removed it in #1766 because normally you don't commit generated files (the dist folder exists in the npm archive though). Apparently it indeed broke the cdn links. Uh oh. Do you have an idea if we could make it work without actually committing it back? Maybe some cdn service that could read an npm package and not a source repo?

$ echo {} > package.json
$ npm install protobufjs
$ ls node_modules/protobufjs/dist/
light			minimal			protobuf.js		protobuf.js.map		protobuf.min.js		protobuf.min.js.map

@alexander-fenster
Copy link
Contributor

After quick googling: https://unpkg.com/protobufjs@7.1.0/dist/protobuf.js - will this one work for you?

I can update the links in the readme.

@basgroot
Copy link
Contributor Author

basgroot commented Sep 9, 2022

That is a good solution, thanks!
I'll close the issue.

@basgroot basgroot closed this as completed Sep 9, 2022
@basgroot
Copy link
Contributor Author

basgroot commented Sep 10, 2022

Still one issue remaining:
https://unpkg.com/protobufjs@7.1.1/dist/protobuf.js
is the same as
https://unpkg.com/protobufjs@7.1.0/dist/protobuf.js
(except for the generation date)

The new file (7.1.1) states in the header "protobuf.js v7.1.0 (c) 2016, daniel wirtz" and doesn't include the fix with var defaultAlreadyEmitted.

basgroot added a commit to basgroot/protobuf.js that referenced this issue Sep 11, 2022
@alexander-fenster
Copy link
Contributor

Still one issue remaining: https://unpkg.com/protobufjs@7.1.1/dist/protobuf.js is the same as https://unpkg.com/protobufjs@7.1.0/dist/protobuf.js (except for the generation date)

The new file (7.1.1) states in the header "protobuf.js v7.1.0 (c) 2016, daniel wirtz" and doesn't include the fix with var defaultAlreadyEmitted.

Interesting, indeed it does not. I will try to figure out why :) Thanks for pointing out!

alexander-fenster pushed a commit that referenced this issue Sep 12, 2022
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

2 participants