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

Add an internal cli argument to create template with path dependencies #212

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

phil-opp
Copy link
Collaborator

When we use git dependencies and update the version number, we might reference a tag that does not exist, which leads to build failures. We used to work around this by creating a temporary tag for the new version and replace it with the proper tag later when we do the release. However, this violates the principle that git tags should be fixed and point to the exact commit that created the release.

In d69c87e, I tried to fix this by patching the git dependencies. Unfortunately it seems like this only works if the original dependency source exists, otherwise cargo will error out before applying the patches.

This PR tries to solve the problem by adding a new internal flag to our CLI (not shown in the help output). When this flag is given, the Rust template will use path dependencies instead of git dependencies. By using this flag in our CLI test, we don't depend on the planned release tag anymore.

@phil-opp phil-opp requested a review from haixuanTao March 14, 2023 12:17
@phil-opp
Copy link
Collaborator Author

Merging directly to unblock the other open PRs (#209, #210, #211)

@phil-opp phil-opp merged commit 6e4a651 into main Mar 14, 2023
@phil-opp phil-opp deleted the dont-require-tag branch March 14, 2023 12:39
haixuanTao added a commit that referenced this pull request Mar 22, 2023
* [Make dora-rs publishable on crates.io](#211)
* [Add an internal cli argument to create template with path dependencies](#212)

* [Avoid blocking the daemon main loop by using unbounded queue](#230)
* [Inject YAML declared env variable into the runtime](#227)
* [Use rustls instead of system SSL implementation](#216)

* [Refactor python error](#229)
* [The first letter of rust should be lowercase in the command](#226)
* [Add documentation to the cli within the helper mode](#225)
* [Update to safer-ffi v0.1.0-rc1](#218)
* [remove unused variable: data_bytes](#215)
* [Clean up: Remove workspace path](#210)
* [Decouple opentelemetry from tracing](#222)
* [Remove zenoh dependency from dora node API to speed up build](#220)
* [Update to Rust v1.68](#221)
* [Deny unknown fields to avoid typos](#223)
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

Successfully merging this pull request may close these issues.

1 participant