Skip to content

Commit

Permalink
Log GOOS and GOARCH in build output for Go utilities
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Barcenilla <[email protected]>
  • Loading branch information
bcxpro committed Feb 25, 2025
1 parent 65ea455 commit b02b881
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/dependencies/go-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ export class GoDependency implements Dependency {
// common args
buildArgs.push('-o', outFile, '.');

console.log(`Building go utility \x1B[1;33;40m${ this.name } \x1B[0m from ${ sourceDir } to ${ outFile }...`);
const env = this.environment(context);

console.log(`Building go utility \x1B[1;33;40m${ this.name }\x1B[0m [${ env.GOOS }/${ env.GOARCH }] from ${ sourceDir } to ${ outFile }...`);
await simpleSpawn('go', buildArgs, {
cwd: sourceDir,
env: this.environment(context),
env,
});
}

Expand Down

0 comments on commit b02b881

Please sign in to comment.