Skip to content

Offline mode#1691

Open
chrisFrodo wants to merge 5 commits intogomods:mainfrom
chrisFrodo:offline-mode
Open

Offline mode#1691
chrisFrodo wants to merge 5 commits intogomods:mainfrom
chrisFrodo:offline-mode

Conversation

@chrisFrodo
Copy link
Copy Markdown

@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
Copy Markdown
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.

2 participants