#Go alias change documentation?
1 messages · Page 1 of 1 (latest)
I tried another module and it added the correct import. This time the module was named renovate instead of main. It's possible main confused my LSP
@grizzled loom @pliant cosmos
Huh yeah that's not great that it didn't work with main. Agree this is worth doc'ing somewhere though in our current layout I'm not 100% sure where under the Developer Manual https://docs.dagger.io/manuals/developer
Well, maybe my LSP glitched out. I've seen it happen to gopls more times than I'd like to admit. I tried another module which was named main and this time it added correctly. I also have goimports setup. It's possible that glitched too.
I did find that I have to do a restart of the LSP after doing codegen especially for it to pick up the alias removals
You need to check with what’s in go.mod and follow the module’s file structure from there. Basically <package name>/internal/dagger.