Skip to content

Commit

Permalink
Change defaults when generating a client via smithy CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal committed Dec 18, 2024
1 parent bed421c commit 7f3b820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

public final class GoModuleInfo {

public static final String DEFAULT_GO_DIRECTIVE = "1.15";
public static final String DEFAULT_GO_DIRECTIVE = "1.21";

private List<SymbolDependency> dependencies;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static GoSettings from(ObjectNode config, ArtifactType artifactType) {
settings.setModuleDescription(config.getStringMemberOrDefault(
MODULE_DESCRIPTION, settings.getModuleName() + " client"));
settings.setModuleVersion(config.getStringMemberOrDefault(MODULE_VERSION, null));
settings.setGenerateGoMod(config.getBooleanMemberOrDefault(GENERATE_GO_MOD, false));
settings.setGenerateGoMod(config.getBooleanMemberOrDefault(GENERATE_GO_MOD, true));
settings.setGoDirective(config.getStringMemberOrDefault(GO_DIRECTIVE, GoModuleInfo.DEFAULT_GO_DIRECTIVE));
return settings;
}
Expand Down

0 comments on commit 7f3b820

Please sign in to comment.