-
Notifications
You must be signed in to change notification settings - Fork 285
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
Self-hosted cargo-cp-artifact
#971
Draft
dherman
wants to merge
9
commits into
main
Choose a base branch
from
self-hosted-cargo-cp-artifact
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Core functionality implemented in crates/cargo-cp-artifact as a regular crate - crates/cargo-cp-artifact also has a bin so it can be used to build the self-hosted JS package - pkgs/cargo-cp-artifact has a Neon implementation that depends on crates/cargo-cp-artifact - pkgs/cargo-cp-artifact/package.json uses `cargo run -p cargo-cp-artifact` to build itself from the monorepo
dherman
force-pushed
the
self-hosted-cargo-cp-artifact
branch
from
February 28, 2023 04:37
9a59f28
to
436c872
Compare
- Wrap HashMap in a custom CopyMap type - Move push_artifact into CopyMap::insert - Move some of CargoCommand::exec into CopyMap::copy - Move copy_artifact into Artifact::copy
dherman
commented
Mar 1, 2023
pkgs/cargo-cp-artifact/package.json
Outdated
], | ||
"bin": { | ||
"cargo-cp-artifact": "bin/cargo-cp-artifact.js" | ||
}, | ||
"scripts": { | ||
"test": "mocha test" | ||
"build": "cargo run -p cargo-cp-artifact -- -ac cargo-cp-artifact-adapter index.node -- cargo build --message-format=json-render-diagnostics", |
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.
This works in tree, but won't work when installed from npm. The next step is now to implement pre-builds.
dherman
force-pushed
the
self-hosted-cargo-cp-artifact
branch
from
April 1, 2023 23:46
2b399a4
to
1abff5c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements #966. Implementation notes:
crates/cargo-cp-artifact
as a regular cratecrates/cargo-cp-artifact
also has a bin so it can be used to build the self-hosted JS packagepkgs/cargo-cp-artifact
has a Neon implementation that depends oncrates/cargo-cp-artifact
pkgs/cargo-cp-artifact/package.json
usescargo run -p cargo-cp-artifact
to build itself from the monorepo