Skip to content

Commit

Permalink
[cli] Bumping to 4.2.6 to fix in issue with --move-2 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wrwg committed Oct 23, 2024
1 parent c749aeb commit a2f6846
Show file tree
Hide file tree
Showing 5 changed files with 7 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.

3 changes: 3 additions & 0 deletions crates/aptos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to the Aptos CLI will be captured in this file. This project

## Unreleased

## [4.2.6] - 2024/10/23
- Fixing issue with `--move-2` flag which was still selecting language version 2.0 instead of 2.1.

## [4.2.5] - 2024/10/23
- Bump to resolve issue with release version inconsistency.

Expand Down
2 changes: 1 addition & 1 deletion crates/aptos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "aptos"
description = "Aptos tool for management of nodes and interacting with the blockchain"
version = "4.2.5"
version = "4.2.6"

# Workspace inherited keys
authors = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/aptos/src/common/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ pub struct MovePackageDir {
/// Currently, defaults to `1`, unless `--move-2` is selected.
#[clap(long, value_parser = clap::value_parser!(LanguageVersion),
alias = "language",
default_value_if("move_2", "true", "2.0"),
default_value_if("move_2", "true", "2.1"),
verbatim_doc_comment)]
pub language_version: Option<LanguageVersion>,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn test_docgen(path: &Path, mut options: Options, suffix: &str) -> anyhow::Resul

if path.to_str().is_some_and(|s| s.contains(V2_TEST_DIR)) {
options.compiler_v2 = true;
options.language_version = Some(LanguageVersion::V2_0);
options.language_version = Some(LanguageVersion::latest_stable());
}

let mut error_writer = Buffer::no_color();
Expand Down

0 comments on commit a2f6846

Please sign in to comment.