mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 23:25:16 +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 log::{debug, info, warn};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
fs::{remove_dir_all, remove_file, File},
|
fs::{canonicalize, remove_dir_all, remove_file, File},
|
||||||
io::Write,
|
io::Write,
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
};
|
};
|
||||||
@ -214,7 +214,7 @@ fn install(args: InstallOpts) -> Result<()> {
|
|||||||
info!("{} Saving configuration file", emoji::WRENCH);
|
info!("{} Saving configuration file", emoji::WRENCH);
|
||||||
let config = Config {
|
let config = Config {
|
||||||
espidf_version: args.espidf_version,
|
espidf_version: args.espidf_version,
|
||||||
export_file,
|
export_file: canonicalize(&export_file)?,
|
||||||
extra_crates: extra_crates
|
extra_crates: extra_crates
|
||||||
.iter()
|
.iter()
|
||||||
.map(|x| x.name.clone())
|
.map(|x| x.name.clone())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user