install gopls/vscode without internet

56 views Asked by At

I using vscode to access via ssh a remote machine and code in there. This remote machine do not have internet connection.

How can I install gopls in this remote machine without connection internet.

Tks,

PP

1

There are 1 answers

1
Alecu Ștefan-Iulian On

You could compile static binaries locally and then deploy via SSH to your remote machine, since SSH itself doesn't require an internet connection. You also have the (tedious) option of downloading all the dependencies needed for your modules, bring those over and compile them on the remote machine. Not ideal, but could be useful if you have a set of modules you want to keep with you.