Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Adutomatically determine the repository if not set in the pulumi sche…
Browse files Browse the repository at this point in the history
…ma (#10)
  • Loading branch information
stack72 authored May 23, 2022
1 parent 251bae6 commit 8500ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ func PackageMetadataCmd() *cobra.Command {
mainSpec.Version = version

if mainSpec.Repository == "" {
return errors.New("repository field must be set in the package schema")
// we already know the repo slug so we can reconstruct the repository name using that
mainSpec.Repository = fmt.Sprintf("https://github.com/%s", repoSlug)
}

status := pkg.PackageStatusGA
Expand Down

0 comments on commit 8500ac3

Please sign in to comment.