cli example removal cleanup

examples/cli was removed in https://github.com/roc-lang/roc/pull/6921
This commit is contained in:
Anton-4 2024-12-13 18:37:42 +01:00
parent a0de21d7d7
commit d4cd3cd50b
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
3 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ mkdir -p $1 $1/examples $1/crates/compiler/builtins/bitcode
mv target/release-with-lto/{roc,roc_language_server,lib} $1
mv LICENSE LEGAL_DETAILS $1
mv examples/{platform-switching,cli} $1/examples
mv examples/{platform-switching} $1/examples
mv crates/roc_std $1/crates
mv crates/compiler/builtins/bitcode/src $1/crates/compiler/builtins/bitcode

View file

@ -3728,9 +3728,9 @@ enum ShorthandPath {
root_module: PathBuf,
},
RelativeToSrc {
/// e.g. "/home/rtfeldman/my-roc-code/examples/cli/cli-platform/"
/// e.g. "/home/username/roc/examples/platform-switching/zig-platform/"
root_module_dir: PathBuf,
/// e.g. "/home/rtfeldman/my-roc-code/examples/cli/cli-platform/main.roc"
/// e.g. "/home/username/roc/examples/platform-switching/zig-platform/main.roc"
root_module: PathBuf,
},
}

View file

@ -171,8 +171,8 @@ fn write_archive<W: Write>(path: &Path, writer: W) -> io::Result<()> {
builder.append_path_with_name(
&path,
// Store it without the root path, so that (for example) we don't store
// `examples/cli/main.roc` and therefore end up with the root of the tarball
// being an `examples/cli/` dir instead of having `main.roc` in the root.
// `examples/platform-switching/zig-platform/main.roc` and therefore end up with the root of the tarball
// being an `examples/platform-switching/zig-platform/` dir instead of having `main.roc` in the root.
path.strip_prefix(root_dir).unwrap(),
)?;
}
@ -247,8 +247,8 @@ fn add_source_files<W: Write>(
builder.append_path_with_name(
path,
// Store it without the root path, so that (for example) we don't store
// `examples/cli/main.roc` and therefore end up with the root of the tarball
// being an `examples/cli/` dir instead of having `main.roc` in the root.
// `examples/platform-switching/zig-platform/main.roc` and therefore end up with the root of the tarball
// being an `examples/platform-switching/zig-platform/` dir instead of having `main.roc` in the root.
path.strip_prefix(root_dir).unwrap(),
)?;
}