Skip to content

Commit 3c8dd62

Browse files
committed
use constified repo name
1 parent ed2b452 commit 3c8dd62

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cross-dev/build_docker_image.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn build_docker_image(
8181
}
8282

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

8787
match (ref_type.as_deref(), ref_name.as_deref()) {

src/docker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use crate::{Config, Target};
1212
use atty::Stream;
1313
use eyre::bail;
1414

15+
pub const CROSS_IMAGE: &str = "ghcr.io/cross-rs";
1516
const DOCKER_IMAGES: &[&str] = &include!(concat!(env!("OUT_DIR"), "/docker-images.rs"));
16-
const CROSS_IMAGE: &str = "ghcr.io/cross-rs";
1717
const DOCKER: &str = "docker";
1818
const PODMAN: &str = "podman";
1919
// secured profile based off the docker documentation for denied syscalls:

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ use self::errors::Context;
4545
use self::rustc::{TargetList, VersionMetaExt};
4646

4747
pub use self::docker::get_container_engine;
48+
pub use self::docker::CROSS_IMAGE;
4849
pub use self::errors::{install_panic_hook, Result};
4950
pub use self::extensions::{CommandExt, OutputExt};
5051

0 commit comments

Comments
 (0)