-
Notifications
You must be signed in to change notification settings - Fork 1k
Feature request: work offline #945
Comments
Yeah, offline mode is something we'd like to add. It's complicated to get it right, though, so - unless someone steps up and is willing to champion a rather difficult project 😉 - it's not likely we'll get to this anytime soon. However! The particular case you're describing doesn't actually require an explicit offline mode. It only requires that, if we have the necessary data in the local cache, |
The doc says: I'd like to change If a teammate commits the version, the other one could pull a newer-but-regression version under current behavior. Any thoughts, @sdboyer ? |
ugh. that's how it works now. that bit of the README is wrong 😢 |
I face the following usecase pretty regular: ProjectB depends on ProjectA I edit projectA and then like to update the vendored dependency of projectB Currently the only way is to do a pretty slow I see few options how to solve this:
|
For the sake of using dep as a fetcher in an OpenEmbedded recipe, I would be interested in the following:
At the moment, the first failure when trying to
Is there already a concept how to handle this without network access? Is the data we have in the cache sufficient to do without the metadata? I've seen a few unmerged PRs on that subject, but I don't think any provided a conclusive solution so far. At a glance, it seems that at least the mapping from dependency names to cache directory names depends on the metadata, so I assume we'd need to do one of:
If there are no other reasons we need to get the metadata, 1. sounds like the best solution to me. |
@schiffermtq Yes, I met the same problem that us production-build network can't access metadata(of golang.org/x/crypto lib), and no workaround. So we decide to find other build tool that support offline. So sorry about that. @sdboyer |
All my issues are gone with |
not really clear how the module system improves on that, but sure |
It at least speeds things up a lot while I don't need new versions from remote repositories by caching more versions. |
background
Gopkg.toml
&Gopkg.lock
are committed into git.$GOPATH/pkg/dep
is cached between CIs.What did you expect to see?
There is a way to restore the exact version from
Gopkg.lock
, anddep
only fetches the remote when$GOPATH/pkg/dep
doesn't have the version.This will speed up the CI process, especially for GFW in China.
What did you see instead?
This is no way to work offline.
The text was updated successfully, but these errors were encountered: