Skip to content

Commit 1145856

Browse files
authored
fix(cmd/build): printed binary name (ignite#1108)
* remove the trailing nil on the binary name This resolves ignite#1103 * make format error
1 parent 1d5f0ef commit 1145856

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

integration/cmd_query_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ func TestGenerateAnAppWithQuery(t *testing.T) {
5757

5858
env.EnsureAppIsSteady(path)
5959
}
60-

starport/cmd/build.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ func buildHandler(cmd *cobra.Command, args []string) error {
5151
return err
5252
}
5353

54-
fmt.Printf("🗃 Installed. Use with: %s\n", infoColor(c.Binary()))
54+
binaryName, err := c.Binary()
55+
if err != nil {
56+
return err
57+
}
58+
fmt.Printf("🗃 Installed. Use with: %s\n", infoColor(binaryName))
5559

5660
return nil
5761
}

0 commit comments

Comments
 (0)