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

External path dependencies work #3025

Merged
merged 10 commits into from
Dec 5, 2024

Conversation

illicitonion
Copy link
Collaborator

This allows dependencies of kind path to work, both in the
[dependencies] table and the [patches] table.

The intention is that this is used for third-party code not first-party
code.

@illicitonion illicitonion force-pushed the local-path-deps branch 8 times, most recently from f51a001 to 8dbbaae Compare November 28, 2024 01:07
@illicitonion illicitonion force-pushed the local-path-deps branch 2 times, most recently from 0860669 to 0e23fc0 Compare December 4, 2024 21:06
This allows dependencies of kind path to work, both in the
[dependencies] table and the [patches] table.

The intention is that this is used for third-party code not first-party
code.
@illicitonion illicitonion marked this pull request as ready for review December 4, 2024 21:13
crate_universe/src/cli/generate.rs Show resolved Hide resolved
crate_universe/private/local_crate_mirror.bzl Outdated Show resolved Hide resolved
crate_universe/private/local_crate_mirror.bzl Outdated Show resolved Hide resolved
crate_universe/private/local_crate_mirror.bzl Show resolved Hide resolved
crate_universe/private/local_crate_mirror.bzl Outdated Show resolved Hide resolved
crate_universe/private/local_crate_mirror.bzl Outdated Show resolved Hide resolved
@illicitonion illicitonion mentioned this pull request Dec 5, 2024
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@@ -46,7 +46,7 @@ pub(crate) struct Context {
/// A list of crates visible to this bazel module.
pub(crate) direct_dev_deps: BTreeSet<CrateId>,

/// A list of [patch] entries from the Cargo.lock file which were not used in the resolve.
/// A list of `[patch]`` entries from the Cargo.lock file which were not used in the resolve.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// A list of `[patch]`` entries from the Cargo.lock file which were not used in the resolve.
/// A list of `[patch]` entries from the Cargo.lock file which were not used in the resolve.

@@ -175,7 +175,7 @@ pub(crate) struct LockfileAnnotation {
/// A mapping of crates/packages to additional source (network location) information.
pub(crate) crates: BTreeMap<PackageId, SourceAnnotation>,

/// A list of [patch] entries from the Cargo.lock file which were not used in the resolve.
/// A list of `[patch]`` entries from the Cargo.lock file which were not used in the resolve.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// A list of `[patch]`` entries from the Cargo.lock file which were not used in the resolve.
/// A list of `[patch]` entries from the Cargo.lock file which were not used in the resolve.

@illicitonion illicitonion added this pull request to the merge queue Dec 5, 2024
Merged via the queue into bazelbuild:main with commit 7edda6f Dec 5, 2024
4 checks passed
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.

2 participants