Skip to content

Commit

Permalink
test: use latest golang in e2e test (#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Dec 4, 2024
1 parent fdfe20b commit 5a70357
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/cli/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- **Aliases**: `u`
- **Source code**: [`src/cli/use.rs`](https://github.com/jdx/mise/blob/main/src/cli/use.rs)

Installs a tool and adds the version it to mise.toml.
Installs a tool and adds the version to mise.toml.

This will install the tool version if it is not already installed.
By default, this will use a `mise.toml` file in the current directory.
Expand Down
5 changes: 3 additions & 2 deletions e2e/backend/test_vfox_go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

mise i vfox:version-fox/vfox-golang@1.23.3
assert_contains "mise x vfox:version-fox/vfox-golang@1.23.3 -- go version" "go version go1.23.3"
version="$(mise latest vfox:version-fox/vfox-golang)"
assert "mise i vfox:version-fox/vfox-golang"
assert_contains "mise x vfox:version-fox/vfox-golang -- go version" "go version go$version"
2 changes: 1 addition & 1 deletion man/man1/mise.1
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mise\-upgrade(1)
Upgrades outdated tools
.TP
mise\-use(1)
Installs a tool and adds the version it to mise.toml.
Installs a tool and adds the version to mise.toml.
.TP
mise\-version(1)
Display the version of mise
Expand Down
4 changes: 2 additions & 2 deletions mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -1524,9 +1524,9 @@ cmd "usage" hide=true help="Generate a usage CLI spec" {

See https://usage.jdx.dev for more information on this specification."
}
cmd "use" help="Installs a tool and adds the version it to mise.toml." {
cmd "use" help="Installs a tool and adds the version to mise.toml." {
alias "u"
long_help r#"Installs a tool and adds the version it to mise.toml.
long_help r#"Installs a tool and adds the version to mise.toml.

This will install the tool version if it is not already installed.
By default, this will use a `mise.toml` file in the current directory.
Expand Down
2 changes: 1 addition & 1 deletion src/cli/use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::toolset::{
use crate::ui::multi_progress_report::MultiProgressReport;
use crate::{config, env, file};

/// Installs a tool and adds the version it to mise.toml.
/// Installs a tool and adds the version to mise.toml.
///
/// This will install the tool version if it is not already installed.
/// By default, this will use a `mise.toml` file in the current directory.
Expand Down
2 changes: 1 addition & 1 deletion xtasks/fig/src/mise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2901,7 +2901,7 @@ const completionSpec: Fig.Spec = {
"use",
"u"
],
"description": "Installs a tool and adds the version it to mise.toml.",
"description": "Installs a tool and adds the version to mise.toml.",
"options": [
{
"name": [
Expand Down

0 comments on commit 5a70357

Please sign in to comment.