-
Notifications
You must be signed in to change notification settings - Fork 541
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
cannot find package "." #968
Comments
Some more info on this, as it's something I've hit too. It looks like it's caused by a repository's structure changing, i.e. a sub-package being moved, or removed entirely. I'm not sure if this is required sometimes, but I'd prefer it if Glide simple didn't care about the structure of the code once it's fetched a repository. There are many times when I want to download updated code and put it in the vendor directory so that I can make the code changes necessary for a build, but I have to either place the dependencies in there manually, or start making changes without the support of my IDE's auto-completion because the updated dependencies don't exist yet. Both of those options are quite frustrating (though I'd argue that the approach |
Has anyone discovered a work around for this error? |
If the package that has been updated is under your own control, then I've since found it easier to use some of the newer Go features like type aliases to ease the pain from refactoring. So, instead of just moving a package, move it and then make aliases to the new location in the old one so that your older code still works. Then, gradually move things over. Basically just mark things as deprecated but make sure they're still usable for a little while until you've ported new code over. If the package is not in your control, then you can always clone the version you want manually to your vendor folder and make your updates in your code. Once you're done, Glide should let you update again. If it's much more complex, sometimes it's even easier to revert to using It's far from ideal, but there are ways you can work around it at least. In the mean time, I've also made an issue about this on |
I'm running into this a lot with docker and docker-ish imports. It would be nice to have a flag that lets me update all my other, healthy deps, and ignore the one with a problem. Right now, it's a bit of a pain to check for updates for everything else. |
any solution found yet? |
maybe you can try clean up the cache and do update
|
Worked for me, thanks |
why this could work? |
I have a similar issue with an application I am building. I tried all the above, but no luck.
but when I run |
Ironically, I was trying to do the exact same thing as @phaneendrayeluri . Same library and version. I am receiving the same error message. |
I haven't used glide on my MBP, but still receive this error, any solution else? |
fine, just go mod tidy, NEVER trust in GOPROXY... Coding at China is too difficult. |
I like glide but this problem is a mood killer, I am looking for a new/better go package manager #sad #disappointed |
I would switch to just using |
So? any news? |
any fix? i made a project with gofiber/fiber/v2 but its showing the same error. i want to push that on heroku but can't because of that. and on the other hand go mod vendor not working this case. what can i do now? |
The text was updated successfully, but these errors were encountered: