Skip to content

Commit

Permalink
Fix --local with KO_DOCKER_REPO (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr authored Apr 22, 2023
1 parent 6a1169b commit 6284661
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 6284661

Please sign in to comment.