Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
- name: Install packages (macOS)
if: runner.os == 'macOS'
shell: bash
run: brew tap slp/krun && brew install asciidoctor libkrun clang-format llvm
run: brew tap libkrun/krun && brew trust libkrun/krun && brew install asciidoctor libkrun clang-format llvm

- name: Install packages (Linux)
if: runner.os == 'Linux'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/changevm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl ChangeVmCmd {

let mut vmcfg = match cfg.vmconfig_map.remove(&self.name) {
None => {
println!("No VM found with name {}", &self.name);
println!("No VM found with name {}", self.name);
std::process::exit(-1);
}
Some(vmcfg) => vmcfg,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl ListCmd {
if cfg.vmconfig_map.is_empty() {
println!("No microVMs found");
} else {
for (_name, vm) in cfg.vmconfig_map.iter() {
for vm in cfg.vmconfig_map.values() {
println!();
printvm(vm);
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn map_volumes(_ctx: u32, vmcfg: &VmConfig, rootfs: &str) {
fn map_volumes(ctx: u32, vmcfg: &VmConfig, rootfs: &str) -> Vec<(String, String)> {
let mut mounts = Vec::new();
for (idx, (host_path, guest_path)) in vmcfg.mapped_volumes.iter().enumerate() {
let full_guest = format!("{}{}", &rootfs, guest_path);
let full_guest = format!("{}{}", rootfs, guest_path);
let full_guest_path = Path::new(&full_guest);
if !full_guest_path.exists() {
std::fs::create_dir(full_guest_path)
Expand Down
Loading