Skip to content

Commit

Permalink
Fix --local with KO_DOCKER_REPO
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Apr 21, 2023
1 parent ba63655 commit df0243a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func makePublisher(po *options.PublishOptions) (publish.Interface, error) {
repoName = po.LocalDomain
}
// When in doubt, if repoName is under the local domain, default to --local.
po.Local = strings.HasPrefix(repoName, po.LocalDomain)
po.Local = po.Local || strings.HasPrefix(repoName, po.LocalDomain)
if po.Local {
// TODO(jonjohnsonjr): I'm assuming that nobody will
// use local with other publishers, but that might
Expand Down

0 comments on commit df0243a

Please sign in to comment.