Merge pull request #969 from yamamoto-febc/flag-name-typo

Fix typos in flag names and error messages
This commit is contained in:
Sam Alba 2021-09-14 08:47:26 -07:00 committed by GitHub
commit 5de40f10bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,11 +151,11 @@ func NewClient(ctx context.Context) *client.Client {
cacheExports, err := buildflags.ParseCacheEntry(viper.GetStringSlice("cache-to")) cacheExports, err := buildflags.ParseCacheEntry(viper.GetStringSlice("cache-to"))
if err != nil { if err != nil {
lg.Fatal().Err(err).Msg("unable to parse --export-cache options") lg.Fatal().Err(err).Msg("unable to parse --cache-to options")
} }
cacheImports, err := buildflags.ParseCacheEntry(viper.GetStringSlice("cache-fron")) cacheImports, err := buildflags.ParseCacheEntry(viper.GetStringSlice("cache-from"))
if err != nil { if err != nil {
lg.Fatal().Err(err).Msg("unable to parse --import-cache options") lg.Fatal().Err(err).Msg("unable to parse --cache-from options")
} }
cl, err := client.New(ctx, "", client.Config{ cl, err := client.New(ctx, "", client.Config{