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-import meta tag isn't defined for the examples submodule #1226

Open
henryjcee opened this issue Oct 9, 2024 · 2 comments
Open

go-import meta tag isn't defined for the examples submodule #1226

henryjcee opened this issue Oct 9, 2024 · 2 comments

Comments

@henryjcee
Copy link

henryjcee commented Oct 9, 2024

I have contributed to this issue in the playground repo and as discussed, the core issue appears to be that /gen/examples package has been made a submodule. This breaks the existing playground import structure.

I'm not an expert on the Go module system but I suspect that this is because go mod is searching https://gorm.io/gen/examples for a meta tag that should look something like

<meta name="go-import" content="gorm.io/gen/examples git https://github.com/go-gorm/gen/examples">

This url currently 404s and as a result the import:

gorm.io/gen/examples v0.3.26

fails to resolve and prevents running the playground. The playground can be run by checking out the gen project and using a replace directive but right now I think this is right solution.

@henryjcee henryjcee changed the title go-import isn't defined for the examples submodule go-import meta tag isn't defined for the examples submodule Oct 9, 2024
@tr1v3r
Copy link
Member

tr1v3r commented Oct 19, 2024

The example is just a usage demonstration of the project and is not intended to be used as a Go SDK for import.

@henryjcee
Copy link
Author

Indeed, but it is imported here in playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants