mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-01 06:40:34 +00:00
fix: 🐛 Use absolute path to export file in config file
This commit is contained in:
parent
5a150b5087
commit
fe31e43a57
@ -23,7 +23,7 @@ use espup::{
|
||||
use log::{debug, info, warn};
|
||||
use std::{
|
||||
collections::HashSet,
|
||||
fs::{remove_dir_all, remove_file, File},
|
||||
fs::{canonicalize, remove_dir_all, remove_file, File},
|
||||
io::Write,
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
@ -214,7 +214,7 @@ fn install(args: InstallOpts) -> Result<()> {
|
||||
info!("{} Saving configuration file", emoji::WRENCH);
|
||||
let config = Config {
|
||||
espidf_version: args.espidf_version,
|
||||
export_file,
|
||||
export_file: canonicalize(&export_file)?,
|
||||
extra_crates: extra_crates
|
||||
.iter()
|
||||
.map(|x| x.name.clone())
|
||||
|
Loading…
x
Reference in New Issue
Block a user