Skip to content

Commit

Permalink
Update to latest buildpacks-jvm-shared
Browse files Browse the repository at this point in the history
Adds backticks to command and URL values, and command output is now indented with 6 space characters
  • Loading branch information
runesoerensen committed Jan 21, 2025
1 parent ae28cde commit 6a49988
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions buildpacks/dotnet/tests/dotnet_publish_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ fn test_dotnet_publish_with_debug_configuration() {
),
&formatdoc! {r"
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
Restored /workspace/foo.csproj <PLACEHOLDER>.
foo -> /workspace/bin/Debug/net8.0/{rid}/foo.dll
foo -> /workspace/bin/publish/"}
Determining projects to restore...
Restored /workspace/foo.csproj <PLACEHOLDER>.
foo -> /workspace/bin/Debug/net8.0/{rid}/foo.dll
foo -> /workspace/bin/publish/"}
);
},
);
Expand All @@ -92,22 +92,22 @@ fn test_dotnet_publish_with_global_json_and_custom_verbosity_level() {
|context| {
assert_empty!(context.pack_stderr);
let rid = get_rid();

assert_contains!(
replace_msbuild_log_patterns_with_placeholder(&context.pack_stdout, "<PLACEHOLDER>"),
&formatdoc! {r#"
- Publish solution
- Using `Release` build configuration
- Running dotnet publish /workspace/foo.csproj --runtime {rid} -p:PublishDir=bin/publish --verbosity normal
MSBuild version 17.8.3+195e7f5a3 for .NET
Build started <PLACEHOLDER>.
1>Project "/workspace/foo.csproj" on node 1 (Restore target(s)).
1>_GetAllRestoreProjectPathItems:
Determining projects to restore...
Restore:
X.509 certificate chain validation will use the fallback certificate bundle at '/layers/heroku_dotnet/sdk/sdk/8.0.101/trustedroots/codesignctl.pem'.
X.509 certificate chain validation will use the fallback certificate bundle at '/layers/heroku_dotnet/sdk/sdk/8.0.101/trustedroots/timestampctl.pem'.
Restoring packages for /workspace/foo.csproj..."#}
- Running `dotnet publish /workspace/foo.csproj --runtime {rid} -p:PublishDir=bin/publish --verbosity normal`
MSBuild version 17.8.3+195e7f5a3 for .NET
Build started <PLACEHOLDER>.
1>Project "/workspace/foo.csproj" on node 1 (Restore target(s)).
1>_GetAllRestoreProjectPathItems:
Determining projects to restore...
Restore:
X.509 certificate chain validation will use the fallback certificate bundle at '/layers/heroku_dotnet/sdk/sdk/8.0.101/trustedroots/codesignctl.pem'.
X.509 certificate chain validation will use the fallback certificate bundle at '/layers/heroku_dotnet/sdk/sdk/8.0.101/trustedroots/timestampctl.pem'.
Restoring packages for /workspace/foo.csproj..."#}
);

assert_contains!(
Expand Down
4 changes: 2 additions & 2 deletions buildpacks/dotnet/tests/sdk_installation_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ fn test_sdk_installation_with_global_json() {
assert_empty!(context.pack_stderr);
assert_contains!(
context.pack_stdout,
&indoc! {r"
&indoc! {"
- SDK version detection
- Detected .NET file to publish: `/workspace/foo.csproj`
- Detecting version requirement from root global.json file
- Detected version requirement: `=8.0.101`
- Resolved .NET SDK version `8.0.101` (linux-arm64)
- SDK installation
- Downloading SDK from https://download.visualstudio.microsoft.com/download/pr/092bec24-9cad-421d-9b43-458b3a7549aa/84280dbd1eef750f9ed1625339235c22/dotnet-sdk-8.0.101-linux-arm64.tar.gz"
- Downloading SDK from `https://download.visualstudio.microsoft.com/download/pr/092bec24-9cad-421d-9b43-458b3a7549aa/84280dbd1eef750f9ed1625339235c22/dotnet-sdk-8.0.101-linux-arm64.tar.gz`"
}
);
assert_contains!(
Expand Down

0 comments on commit 6a49988

Please sign in to comment.