Skip to content

Commit

Permalink
Remove Go Module Generation and Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Apr 14, 2021
1 parent 6b3d79d commit 7d6a773
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
8 changes: 0 additions & 8 deletions codegen/smithy-go-codegen-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,3 @@ dependencies {
implementation("software.amazon.smithy:smithy-protocol-test-traits:[1.2.0,2.0.0[")
implementation(project(":smithy-go-codegen"))
}

// ensure built artifacts are put into the SDK's folders
tasks.create<Exec>("verifyGoCodegen") {
dependsOn ("build")
workingDir("$buildDir/smithyprojections/smithy-go-codegen-test/source/go-codegen")
commandLine ("go", "test", "-mod", "mod", "-run", "NONE", "./...")
}
tasks["build"].finalizedBy(tasks["verifyGoCodegen"])
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,8 @@ void execute() {
List<SymbolDependency> dependencies = writers.getDependencies();
writers.flushWriters();

LOGGER.fine("Generating go.mod file");
GoModGenerator.writeGoMod(settings, fileManifest, dependencies);

LOGGER.fine("Generating build manifest file");
ManifestWriter.writeManifest(settings, fileManifest, dependencies);

LOGGER.fine("Running go fmt");
CodegenUtils.runCommand("gofmt -w -s .", fileManifest.getBaseDir());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void writeManifest(
fileManifest.addFile(manifestFile);

Node generatedJson = buildManifestFile(settings, fileManifest, dependencies);
fileManifest.writeFile(manifestFile.toString(), Node.prettyPrintJson(generatedJson)+"\n");
fileManifest.writeFile(manifestFile.toString(), Node.prettyPrintJson(generatedJson) + "\n");
}

private static Node buildManifestFile(
Expand Down

0 comments on commit 7d6a773

Please sign in to comment.