-
Notifications
You must be signed in to change notification settings - Fork 72
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
Refactor -> move simple resolver to separate mod #1452
base: main
Are you sure you want to change the base?
Conversation
57c7fea
to
5e3f300
Compare
beead3d
to
8a59b68
Compare
8a59b68
to
7c6c170
Compare
cc55fb9
to
d1e14cf
Compare
f3db9da
to
0fb9853
Compare
836e39b
to
d2c9ab4
Compare
commit-id:3ba8d8f0
d2c9ab4
to
d500c74
Compare
let algo_primitive = env::var("SCARB_UNSTABLE_PRIMITIVE_RESOLVER") | ||
.ok() | ||
.map(|var| var.as_str() == "true") | ||
.unwrap_or(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.
I'd rather model config as "enable" rather than "disable"
let algo_primitive = env::var("SCARB_UNSTABLE_PRIMITIVE_RESOLVER") | |
.ok() | |
.map(|var| var.as_str() == "true") | |
.unwrap_or(true); | |
let algo_primitive = env::var("SCARB_PUBGRUB") | |
.ok() | |
.map(|var| { | |
let s = var.as_str(); | |
s == "true" || s == "1" | |
}) | |
.unwrap_or(false); |
registry: &dyn Registry, | ||
package_id: &PackageId, | ||
dependency: &ManifestDependency, | ||
) -> anyhow::Result<ManifestDependency> { |
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.
nit: import the result directly
summaries: &[Summary], | ||
registry: &dyn Registry, | ||
lockfile: Lockfile, | ||
) -> anyhow::Result<Resolve> { |
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.
nit: import the result directly
Perhaps in the future this conflict could be resolved, but currently, | ||
please upgrade your dependencies to use latest versions of their dependencies. | ||
"}); | ||
let algo_primitive = env::var("SCARB_UNSTABLE_PRIMITIVE_RESOLVER") |
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.
nit:
let algo_primitive = env::var("SCARB_UNSTABLE_PRIMITIVE_RESOLVER") | |
let algo_primitive = env::var("SCARB_UNSTABLE_PRIMITIVE_DEPENDENCY_RESOLVER") |
_summaries: &[Summary], | ||
_registry: &dyn Registry, | ||
_lockfile: Lockfile, | ||
) -> anyhow::Result<Resolve> { |
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.
nit: import the result directly
Stack: