Skip to content
Merged

Upgrade #2842

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion azure-rest-api-specs
8 changes: 4 additions & 4 deletions provider/cmd/pulumi-gen-azure-native/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ func main() {

switch languages {
case "schema":
buildSchemaResult, err := versioning.BuildSchema(buildSchemaArgs)
if err != nil {
panic(err)
}
buildSchemaResult, buildSchemaErr := versioning.BuildSchema(buildSchemaArgs)

if namespaces == "*" && apiVersions == "" {
written, err := buildSchemaResult.Version.WriteTo("versions")
Expand All @@ -99,6 +96,9 @@ func main() {
} else {
fmt.Println("Note: skipping writing version metadata and reports because DEBUG_CODEGEN_NAMESPACES or DEBUG_CODEGEN_APIVERSIONS is set.")
}
if buildSchemaErr != nil {
panic(buildSchemaErr)
}
if codegenSchemaOutputPath == "" {
codegenSchemaOutputPath = path.Join("bin", "schema-full.json")
}
Expand Down
7 changes: 6 additions & 1 deletion provider/pkg/versioning/build_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ func BuildSchema(args BuildSchemaArgs) (*BuildSchemaResult, error) {

generationResult, err := gen.PulumiSchema(args.RootDir, providers, versionMetadata)
if err != nil {
return nil, err
return &BuildSchemaResult{
PackageSpec: schema.PackageSpec{},
Metadata: resources.AzureAPIMetadata{},
Version: versionMetadata,
Reports: BuildSchemaReports{},
}, err
}

pkgSpec := generationResult.Schema
Expand Down
Loading