Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAST IC #3811

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FAST IC #3811

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions 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 src/dfx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ ci_info = "0.14"
junction = "1.0.0"

[target.'cfg(unix)'.dependencies]
pocket-ic = "3.1.0"
pocket-ic = { path = "../../../ic/packages/pocket-ic" }

[dev-dependencies]
env_logger = "0.10"
Expand Down
9 changes: 7 additions & 2 deletions src/dfx/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ pub mod cache;

lazy_static! {
// This expect cannot happen, we make sure that CARGO_PKG_VERSION is correct.
static ref VERSION: Version =
Version::parse(env!("CARGO_PKG_VERSION")).expect("Cannot parse version.");
static ref VERSION: Version = {
let version_str = env!("CARGO_PKG_VERSION");
dbg!(version_str);
let version_cleaned = version_str.split('+').next().expect("Cannot parse version.");
dbg!(version_cleaned);
Version::parse("1.2.3").expect("Cannot parse version.")
};

static ref VERSION_STR: String = env!("CARGO_PKG_VERSION").to_string();
}
Expand Down
Loading