Fix typos in flag names and error messages

Signed-off-by: Kazumichi Yamamoto <yamamoto.febc@gmail.com>
This commit is contained in:
Kazumichi Yamamoto 2021-09-14 13:47:58 +09:00
parent 4d45e269e0
commit 9dda32a6c6

View File

@ -151,11 +151,11 @@ func NewClient(ctx context.Context) *client.Client {
cacheExports, err := buildflags.ParseCacheEntry(viper.GetStringSlice("cache-to"))
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 {
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{