Skip to content

Commit 9cfc766

Browse files
authored
Api fix (#746)
* Adding API fix to avoid breaking changes * shouldn't ahve changed that * forgot obsolete attribute
1 parent faf2973 commit 9cfc766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CommunityToolkit.Aspire.Hosting.Golang/GolangAppHostingExtension.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public static class GolangAppHostingExtension
1616
/// <param name="workingDirectory">The working directory to use for the command. If null, the working directory of the current process is used.</param>
1717
/// <param name="args">The optinal arguments to be passed to the executable when it is started.</param>
1818
/// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns>
19+
[Obsolete("Use AddGolangApp with buildTags parameter instead. This method will be removed in a future version.")]
1920
public static IResourceBuilder<GolangAppExecutableResource> AddGolangApp(this IDistributedApplicationBuilder builder, [ResourceName] string name, string workingDirectory, string[] args)
20-
=> AddGolangApp(builder, name, workingDirectory, args);
21+
=> AddGolangApp(builder, name, workingDirectory, args, null);
2122

2223
/// <summary>
2324
/// Adds a Golang application to the application model. Executes the executable Golang app.

0 commit comments

Comments
 (0)