![]() ![]() Just to reiterate, everything builds correctly, however the linting for my go.mod acts like there is a missing dependency error. My project is outside of my GOPATH and I have go modules enabled in the Goland settings menu. Install other tools to get started with React Native, for example, an iOS simulator. I am using Goland 2020.3.5 and go 1.16.3. To lock the folders IDE is starting a server on localhost, it tries to bind on the first available port between 69, this exception is thrown if IDE was not able to bind on any of the ports in this range. When you click Create, GoLand generates a React Native -specific project with all the required configuration files, downloads the dependencies, and creates a run/debug configuration of the type React Native with default settings. The red lightbulb suggests I "Sync Dependencies" which i have tried, but after a "Finished Successfully" message, the error remains. hashicorp/vault/api v1.0.5-0.20210210214158-405eced08457Īll this works as expected from a build perspective (and dependency resolution within the source code), however Goland is highlighting both the import statement and the replace statement in my main project's go.mod in red (the error is "missing dependency"). For more information about enabling Go modules integration, see Enable Go in a project. Synchronize dependencies from go.mod Ensure that Go modules integration is enabled. Select Sync dependencies Goland will download this module from. ![]() You can fetch missed dependencies and remove unused dependencies. Place your cursor on this red squiggly line and hit ALT+ENTER (or OPTION+ENTER if you are a mac user). I'm trying to follow the pattern in hashicorp's vault project where I maintain an api module in a sub folder (that can be imported by others without dragging in all deps used by my main project.) Just like in vault, I reference the api module by url in my main project's go.mod and override it with a replace pointing to the relative path location. Click a dependency in the import section, press Alt+Enter and select Sync dependencies. How can I get Goland to lint my go.mod correctly and not report "missing dependency" errors for a module I am maintaining in a sub directory of my main project? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |