Skip to content

Commit

Permalink
Configure artifacts path to temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
runesoerensen committed Jan 24, 2025
1 parent 27b5ac7 commit eb32397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildpacks/dotnet/src/dotnet_publish_command.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::dotnet::runtime_identifier::RuntimeIdentifier;
use std::env::temp_dir;
use std::fmt;
use std::path::PathBuf;
use std::process::Command;
Expand All @@ -19,6 +20,8 @@ impl From<DotnetPublishCommand> for Command {
"--runtime",
&value.runtime_identifier.to_string(),
"-p:PublishDir=bin/publish",
"--artifacts-path",
&temp_dir().join("build_artifacts").to_string_lossy(),
]);

if let Some(configuration) = value.configuration {
Expand Down

0 comments on commit eb32397

Please # to comment.