Skip to content

Commit

Permalink
fix(volo-cli): use the raw given path of local idl file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ggiggle committed Oct 15, 2024
1 parent 0c2e384 commit 9b93dbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion volo-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "volo-cli"
version = "0.10.3"
version = "0.10.4"
edition.workspace = true
homepage.workspace = true
repository.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions volo-cli/src/idl/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{collections::HashMap, path::PathBuf};
use clap::{value_parser, Parser};
use volo_build::{
model::{Entry, GitSource, Idl, Service, Source},
util::{check_and_get_repo_name, create_git_service, detect_protocol, strip_slash_prefix},
util::{check_and_get_repo_name, create_git_service, detect_protocol},
};

use crate::{command::CliCommand, context::Context};
Expand Down Expand Up @@ -67,7 +67,7 @@ impl CliCommand for Add {
let local_service = if self.repo.is_none() && self.git.is_none() {
let local_idl = Idl {
source: Source::Local,
path: strip_slash_prefix(self.idl.as_path()),
path: self.idl.clone(),
includes: self.includes.clone(),
};
// only ensure readable when idl is from local
Expand Down

0 comments on commit 9b93dbd

Please sign in to comment.