Skip to content

Commit

Permalink
chore: bump rattler (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra authored Sep 3, 2024
1 parent 1447a6a commit 620f9ac
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 107 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ jobs:
fail-fast: false
matrix:
include:
- { name: "Linux", target: x86_64-unknown-linux-musl, os: ubuntu-20.04 }
- { name: "Linux", target: x86_64-unknown-linux-musl, os: 8core_ubuntu_latest_runner }
- { name: "macOS", target: x86_64-apple-darwin, os: macos-13 }
- { name: "macOS-arm", target: aarch64-apple-darwin, os: macos-14 }
- { name: "Windows", target: x86_64-pc-windows-msvc, os: windows-latest }
- { name: "Windows", target: x86_64-pc-windows-msvc, os: 16core_windows_latest_runner }
steps:
- uses: actions/checkout@v4
- uses: taiki-e/setup-cross-toolchain-action@v1
Expand Down
112 changes: 51 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 9 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ serde_ignored = "0.1.10"
serde_json = "1.0.116"
serde_with = "3.7.0"
serde_yaml = "0.9.34"
serial_test = "3.0.0"
shlex = "1.3.0"
signal-hook = "0.3.17"
spdx = "0.10.4"
Expand All @@ -90,16 +89,16 @@ typed-path = "0.9.1"

# Rattler crates
file_url = "0.1.4"
rattler = { version = "0.27.6", default-features = false }
rattler_cache = { version = "0.1.8", default-features = false }
rattler_conda_types = { version = "0.27.2", default-features = false }
rattler = { version = "0.27.8", default-features = false }
rattler_cache = { version = "0.2.0", default-features = false }
rattler_conda_types = { version = "0.27.4", default-features = false }
rattler_digest = { version = "1.0.1", default-features = false }
rattler_lock = { version = "0.22.20", default-features = false }
rattler_networking = { version = "0.21.2", default-features = false }
rattler_repodata_gateway = { version = "0.21.8", default-features = false }
rattler_shell = { version = "0.21.6", default-features = false }
rattler_solve = { version = "1.0.3", default-features = false }
rattler_virtual_packages = { version = "1.0.4", default-features = false }
rattler_lock = { version = "0.22.22", default-features = false }
rattler_networking = { version = "0.21.3", default-features = false }
rattler_repodata_gateway = { version = "0.21.10", default-features = false }
rattler_shell = { version = "0.21.8", default-features = false }
rattler_solve = { version = "1.0.5", default-features = false }
rattler_virtual_packages = { version = "1.1.1", default-features = false }

# Bumping this to a higher version breaks the Windows path handling.
url = "2.5.0"
Expand Down Expand Up @@ -314,7 +313,6 @@ http = { workspace = true }
insta = { workspace = true, features = ["yaml", "glob"] }
rstest = { workspace = true }
serde_json = { workspace = true }
serial_test = { workspace = true }
tokio = { workspace = true, features = ["rt"] }


Expand Down
4 changes: 2 additions & 2 deletions src/cli/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rattler::{
};
use rattler_conda_types::{GenericVirtualPackage, MatchSpec, PackageName, Platform};
use rattler_solve::{resolvo::Solver, SolverImpl, SolverTask};
use rattler_virtual_packages::VirtualPackage;
use rattler_virtual_packages::{VirtualPackage, VirtualPackageOverrides};
use reqwest_middleware::ClientWithMiddleware;

use crate::prefix::Prefix;
Expand Down Expand Up @@ -185,7 +185,7 @@ pub async fn create_exec_prefix(
.context("failed to get repodata")?;

// Determine virtual packages of the current platform
let virtual_packages = VirtualPackage::current()
let virtual_packages = VirtualPackage::detect(&VirtualPackageOverrides::from_env())
.into_diagnostic()
.context("failed to determine virtual packages")?
.iter()
Expand Down
11 changes: 6 additions & 5 deletions src/cli/global/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use clap::Parser;
use indexmap::IndexMap;
use itertools::Itertools;
use miette::{Context, IntoDiagnostic};
use pixi_config::{self, Config, ConfigCli};
use pixi_progress::{await_in_progress, global_multi_progress, wrap_in_progress};
use pixi_utils::reqwest::build_reqwest_clients;
use rattler::{
install::{DefaultProgressFormatter, IndicatifReporter, Installer},
Expand All @@ -21,16 +23,15 @@ use rattler_shell::{
shell::{Shell, ShellEnum},
};
use rattler_solve::{resolvo::Solver, SolverImpl, SolverTask};
use rattler_virtual_packages::VirtualPackage;
use rattler_virtual_packages::{VirtualPackage, VirtualPackageOverrides};
use reqwest_middleware::ClientWithMiddleware;

use super::common::{channel_name_from_prefix, find_designated_package, BinDir, BinEnvDir};
use crate::{
cli::cli_config::ChannelsConfig, cli::has_specs::HasSpecs, prefix::Prefix,
cli::{cli_config::ChannelsConfig, has_specs::HasSpecs},
prefix::Prefix,
rlimit::try_increase_rlimit_to_sensible,
};
use pixi_config::{self, Config, ConfigCli};
use pixi_progress::{await_in_progress, global_multi_progress, wrap_in_progress};

/// Installs the defined package in a global accessible location.
#[derive(Parser, Debug)]
Expand Down Expand Up @@ -313,7 +314,7 @@ pub async fn execute(args: Args) -> miette::Result<()> {
.into_diagnostic()?;

// Determine virtual packages of the current platform
let virtual_packages = VirtualPackage::current()
let virtual_packages = VirtualPackage::detect(&VirtualPackageOverrides::from_env())
.into_diagnostic()
.context("failed to determine virtual packages")?
.iter()
Expand Down
4 changes: 2 additions & 2 deletions src/cli/global/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use miette::{Context, IntoDiagnostic, Report};
use pixi_utils::reqwest::build_reqwest_clients;
use rattler_conda_types::{Channel, GenericVirtualPackage, MatchSpec, PackageName, Platform};
use rattler_solve::{resolvo::Solver, SolverImpl, SolverTask};
use rattler_virtual_packages::VirtualPackage;
use rattler_virtual_packages::{VirtualPackage, VirtualPackageOverrides};
use tokio::task::JoinSet;

use super::{common::find_installed_package, install::globally_install_package};
Expand Down Expand Up @@ -134,7 +134,7 @@ pub(super) async fn upgrade_packages(
.collect();

// Determine virtual packages of the current platform
let virtual_packages = VirtualPackage::current()
let virtual_packages = VirtualPackage::detect(&VirtualPackageOverrides::from_env())
.into_diagnostic()
.context("failed to determine virtual packages")?
.iter()
Expand Down
4 changes: 2 additions & 2 deletions src/cli/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use pixi_manifest::{FeaturesExt, HasFeaturesIter};
use pixi_progress::await_in_progress;
use rattler_conda_types::{GenericVirtualPackage, Platform};
use rattler_networking::authentication_storage;
use rattler_virtual_packages::VirtualPackage;
use rattler_virtual_packages::{VirtualPackage, VirtualPackageOverrides};
use serde::Serialize;
use serde_with::{serde_as, DisplayFromStr};
use tokio::task::spawn_blocking;
Expand Down Expand Up @@ -360,7 +360,7 @@ pub async fn execute(args: Args) -> miette::Result<()> {
})
.unwrap_or_default();

let virtual_packages = VirtualPackage::current()
let virtual_packages = VirtualPackage::detect(&VirtualPackageOverrides::from_env())
.into_diagnostic()?
.iter()
.cloned()
Expand Down
Loading

0 comments on commit 620f9ac

Please sign in to comment.