diff --git a/cli/cmd/push.go b/cli/cmd/push.go index e49a027..979e183 100644 --- a/cli/cmd/push.go +++ b/cli/cmd/push.go @@ -7,7 +7,6 @@ import ( "github.com/gvkhna/warpdive/dive" "github.com/gvkhna/warpdive/runtime" "github.com/spf13/cobra" - "github.com/spf13/viper" ) var pushCmd = &cobra.Command{ @@ -60,10 +59,10 @@ func doPushCmd(cmd *cobra.Command, args []string) { sourceType, imageStr = dive.DeriveImageSource(userImage) if sourceType == dive.SourceUnknown { - sourceStr := viper.GetString("source") - sourceType = dive.ParseImageSource(sourceStr) + // sourceStr := viper.GetString("source") + sourceType = dive.ParseImageSource(defaultSource) if sourceType == dive.SourceUnknown { - fmt.Printf("unable to determine image source: %v\n", sourceStr) + fmt.Printf("unable to determine image source: %v\n", defaultSource) os.Exit(1) } diff --git a/cli/runtime/run.go b/cli/runtime/run.go index 84741a8..3bb5170 100644 --- a/cli/runtime/run.go +++ b/cli/runtime/run.go @@ -716,7 +716,7 @@ func run(enableUi bool, options Options, imageResolver image.Resolver, events ev // Use default endpoint if not specified if warpDiveEndpoint == "" { warpDiveEndpoint = "https://www.warpdive.xyz" - log.Printf("WARPDIVE_ENDPOINT not set. Using default: %s", warpDiveEndpoint) + warpDiveLogger.Printf("WARPDIVE_ENDPOINT not set. Using default: %s", warpDiveEndpoint) } else { log.Printf("Using WARPDIVE_ENDPOINT: %s", warpDiveEndpoint) } @@ -738,7 +738,7 @@ func run(enableUi bool, options Options, imageResolver image.Resolver, events ev } } - fmt.Printf("Successfully loaded configuration: Endpoint %s, API Key %s\n", warpDiveEndpoint, warpDiveAPIKey) + warpDiveLogger.Printf("Successfully loaded configuration: Endpoint %s, API Key %s\n", warpDiveEndpoint, warpDiveAPIKey) // Parse the endpoint URL parsedUrl, err := url.Parse(warpDiveEndpoint) if err != nil { diff --git a/cli/warpdive/index.js b/cli/warpdive/index.js index 3749dc3..681c76b 100644 --- a/cli/warpdive/index.js +++ b/cli/warpdive/index.js @@ -51,7 +51,7 @@ function getBinaryPath() { } } -function runBinary(...args) { +function runBinary(args) { // Skip downloading the binary if it was already installed via optionalDependencies if (!isPlatformSpecificPackageInstalled()) { if (isFallbackBinaryInstalled()) {