crossplane / crossplane/upjet

make generate error: json: error calling MarshalJSON for type json.SimpleJSONValue: value is not known

Open
#278 3 comments 0 reactions 0 assignees View on GitHub
bug needs:triage v2
Dominant language
Go
Stars
481
Forks
131
Avg merge
2d 1h
Merged PRs (30d)
11

Description

I have followed the steps here to create a new provider: https://github.com/upbound/upjet/blob/main/docs/generating-a-provider.md

On step 8, when I run "make generate" I run into this error:

scraper: error: Failed to scrape Terraform provider metadata: cannot scrape Terraform registry: failed to scrape resource metadata from path: ../.work/dmacvicar/libvirt/website/docs/r/coreos_ignition.html.markdown: failed to convert example manifest to JSON: failed to format as JSON: marshal json: json: error calling MarshalJSON for type json.SimpleJSONValue: value is not known

I'm using Ubuntu 22.0 as my environment.

Contributor guide

Open the contributing guide

Research direction

Follow docs/generating-a-provider.md through step 8 and run make generate in the Ubuntu environment described. Start with the Terraform metadata scraper error for ../.work/dmacvicar/libvirt/website/docs/r/coreos_ignition.html.markdown and trace the failed example-manifest JSON conversion; done means generation completes without the reported MarshalJSON error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, terraform
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.