diff --git a/pkg/commands/resolver.go b/pkg/commands/resolver.go index 2076afd800..966ba37dd2 100644 --- a/pkg/commands/resolver.go +++ b/pkg/commands/resolver.go @@ -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