-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add support for npm engine #913
Conversation
require 'minitar' | ||
require 'zlib' | ||
|
||
class ProcessDockerImageWorker < BaseWorker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoilers! 😉 Rip this out into a separate PR.
b63678f
to
7b4c4b0
Compare
c926e83
to
5568721
Compare
127b774
to
f038570
Compare
cc14193
to
eee1e73
Compare
app/controllers/api/v1/release_engines/npm/package_metadata_controller.rb
Outdated
Show resolved
Hide resolved
app/controllers/api/v1/release_engines/npm/package_metadata_controller.rb
Show resolved
Hide resolved
artifact.update!(status: 'UPLOADED') | ||
|
||
BroadcastEventService.call( | ||
event: 'artifact.upload.succeeded', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: update Zapier with new event.
b0895e0
to
4c5b39f
Compare
# FIXME(ezekg) https://github.com/brianhempel/active_record_union/issues/35 | ||
last_modified = artifacts.maximum(:"#{artifacts.table_name}.updated_at") | ||
return unless | ||
stale?(artifacts, last_modified:, cache_control: { max_age: 1.day, private: true }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rip out the PyPI etag stuff into a separate PR.
app/controllers/api/v1/release_engines/npm/package_metadata_controller.rb
Outdated
Show resolved
Hide resolved
fc7035f
to
44098d5
Compare
9566850
to
44fbd9e
Compare
44fbd9e
to
2c19e9f
Compare
Closes #489. In the end, it should be as simple as
npm pack
andkeygen upload example-1.0.0.tgz
— the rest should be automatically done by the engine. Like with PyPI and Rubygems,npm push
will not be supported right away.Prereqs
Add SHA1 checksum flag to CLI: Add support for SHA1 checksum algorithm keygen-cli#23Subreqs
npm.pkg.keygen.sh
subdomain.