Skip to content

Commit

Permalink
embedder: Add --goos flag to 'crc-embedder download'
Browse files Browse the repository at this point in the history
This will help to run parts of 'make packagedir' or 'make msidir'
on non-native platforms.
  • Loading branch information
cfergeau authored and praveenkumar committed Jan 9, 2023
1 parent 768e16c commit fd90e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/crc-embedder/cmd/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

func init() {
downloadCmd.Flags().StringVar(&goos, "goos", runtime.GOOS, "Target platform (darwin, linux or windows)")
rootCmd.AddCommand(downloadCmd)
}

Expand All @@ -20,6 +21,6 @@ var downloadCmd = &cobra.Command{
}

func runDownload(args []string) error {
_, err := downloadDataFiles(runtime.GOOS, args[0])
_, err := downloadDataFiles(goos, args[0])
return err
}

0 comments on commit fd90e69

Please sign in to comment.