Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go schemas with URL tags cause syntax errors #3436

Open
richardpeng opened this issue Sep 3, 2024 · 0 comments
Open

Go schemas with URL tags cause syntax errors #3436

richardpeng opened this issue Sep 3, 2024 · 0 comments
Labels
NeedsInvestigation Triage Requires triage/attention

Comments

@richardpeng
Copy link

What version of CUE are you using (cue version)?

$ cue version
cue version v0.10.0

go version go1.22.6
      -buildmode exe
       -compiler gc
     CGO_ENABLED 1
          GOARCH arm64
            GOOS darwin
cue.lang.version v0.10.0

$ env | grep CUE
CUE_EXPERIMENT=evalv3

Does this issue reproduce with the latest stable release?

Yes

What did you do?

go mod init example.com/teleport
go get github.com/gravitational/teleport/api/types
cue get go github.com/gravitational/teleport/api/types

What did you expect to see?

No syntax errors in cue.mod/gen/github.com/russellhaering/goxmldsig/types/signature_go_gen.cue

What did you see instead?

#InclusiveNamespaces: {
	XMLName:    xml.#Name @xml(http://www.w3.org/2001/10/xml-exc-c14n# InclusiveNamespaces)
	PrefixList: string    @xml(PrefixList,attr)
}

XMLName xml tags have URLs, but the // is interpreted as the start of a comment

@richardpeng richardpeng added NeedsInvestigation Triage Requires triage/attention labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Triage Requires triage/attention
Projects
None yet
Development

No branches or pull requests

1 participant