Skip to content

Commit 822a454

Browse files
committed
Remove use of absolute for local_app_dir
Signed-off-by: Ryan Levick <[email protected]>
1 parent c7e310d commit 822a454

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

crates/trigger/src/cli.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,7 @@ impl<T: Trigger> TriggerAppBuilder<T> {
309309
self.trigger.add_to_linker(core_engine_builder.linker())?;
310310

311311
let runtime_config_path = options.runtime_config_file;
312-
let local_app_dir = options
313-
.local_app_dir
314-
.map(std::path::absolute)
315-
.transpose()
316-
.context("failed to resolve local app directory path to an absolute path")?;
312+
let local_app_dir = options.local_app_dir.map(PathBuf::from);
317313
let state_dir = match options.state_dir {
318314
// Make sure `--state-dir=""` unsets the state dir
319315
Some("") => UserProvidedPath::Unset,

crates/trigger/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use spin_factors_executor::{FactorsExecutorApp, FactorsInstanceBuilder};
1111

1212
pub use spin_app::App;
1313

14-
/// Type alias for a [`FactorsConfiguredApp`] specialized to a [`Trigger`].
14+
/// Type alias for a [`FactorsExecutorApp`] specialized to a [`Trigger`].
1515
pub type TriggerApp<T> = FactorsExecutorApp<TriggerFactors, <T as Trigger>::InstanceState>;
1616

1717
pub type TriggerInstanceBuilder<'a, T> =

0 commit comments

Comments
 (0)