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

Offline mode #1691

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Offline mode #1691

wants to merge 5 commits into from

Conversation

chrisFrodo
Copy link

@chrisFrodo chrisFrodo commented Jan 7, 2021

Hi,

I've been trying to use Athens on an air-gaped machine (offline) to fetch all my Golang dependencies. I've been able to make Athens work by copying the cache folder from an internet machine to the offline one.

However, Golang can only download the needed modules if the exact version of the dependency is specified since the @latest listing always tries to connect to internet.

This seems to be a recurrent issue as demonstrated by #1506 #1378 #395

I saw the following PR #1668 which seems to address this issue by adding a MODE=offline configuration (See #1532).

This PR only fix a few issues on the draft above. It has been tested and works perfectly fine in my offline setup.

Thank you

@chrisFrodo chrisFrodo requested a review from a team as a code owner January 7, 2021 13:20
@arschles
Copy link
Member

@chrisFrodo I'll take a look at this in detail in the next few days. sorry for the delay here

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

Successfully merging this pull request may close these issues.

None yet

2 participants