Skip to content

Commit

Permalink
use constified repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jun 13, 2022
1 parent ed2b452 commit 3c8dd62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cross-dev/build_docker_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn build_docker_image(
}

let dockerfile = format!("Dockerfile.{target}");
let image_name = format!("ghcr.io/cross-rs/{target}");
let image_name = format!("{}/{target}", cross::CROSS_IMAGE);
let mut tags = vec![];

match (ref_type.as_deref(), ref_name.as_deref()) {
Expand Down
2 changes: 1 addition & 1 deletion src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use crate::{Config, Target};
use atty::Stream;
use eyre::bail;

pub const CROSS_IMAGE: &str = "ghcr.io/cross-rs";
const DOCKER_IMAGES: &[&str] = &include!(concat!(env!("OUT_DIR"), "/docker-images.rs"));
const CROSS_IMAGE: &str = "ghcr.io/cross-rs";
const DOCKER: &str = "docker";
const PODMAN: &str = "podman";
// secured profile based off the docker documentation for denied syscalls:
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ use self::errors::Context;
use self::rustc::{TargetList, VersionMetaExt};

pub use self::docker::get_container_engine;
pub use self::docker::CROSS_IMAGE;
pub use self::errors::{install_panic_hook, Result};
pub use self::extensions::{CommandExt, OutputExt};

Expand Down

0 comments on commit 3c8dd62

Please sign in to comment.