remote-nvim.nvim
remote-nvim.nvim copied to clipboard
Offline mode is not... offline
Describe the bug
While building NVim on a remote machine in offline mode, the build fails while fetching neovim/unibilium by CMake.
To reproduce
return {
"amitds1997/remote-nvim.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-telescope/telescope.nvim",
},
opts = {
ssh_config = {
scp_binary = "rsync --perms --chmod=u+rwx,g+rwx,o+rwx",
},
offline_mode = {
enabled = true,
},
},
}
Steps to reproduce the behavior:
- :RemoteStart
- select ssh host
- files are copied just fine
- build fails with "cannot translate github.com" (as the device has no internet connectivity)
Expected behavior
The build should have all the dependencies available
Logs
:RemoteLog
Operating in offline mode. Will not download Neovim source
Extracting Neovim source...
Creating necessary directories...
Building Neovim...
make: Entering directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2'
mkdir -p ".deps"
/usr/bin/cmake -S /tmp/tmp.ESk9Rwq2yS/neovim-0.10.2//cmake.deps -B ".deps" -G "Unix Makefiles"
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found GNU Make at /usr/bin/make
-- CMAKE_BUILD_TYPE=Release
-- Performing Test HAS_OG_FLAG
-- Performing Test HAS_OG_FLAG - Success
-- Performing Test HAS_NO_STACK_CHECK
-- Performing Test HAS_NO_STACK_CHECK - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps
mkdir -p build
touch "build/.ran-deps-cmake"
/usr/bin/cmake --build ".deps"
make[1]: Entering directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[2]: Entering directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[3]: Entering directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[3]: Leaving directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[3]: Entering directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
[ 1%] Creating directories for 'unibilium'
[ 2%] Performing download step (download, verify and extract) for 'unibilium'
-- Downloading...
dst='/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps/build/downloads/unibilium/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
-- Retrying...
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz'
CMake Error at unibilium-stamp/download-unibilium.cmake:170 (message):
Each download failed!
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
make[3]: Leaving directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[3]: *** [CMakeFiles/unibilium.dir/build.make:100: build/src/unibilium-stamp/unibilium-download] Error 1
make[2]: Leaving directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make[2]: *** [CMakeFiles/Makefile2:111: CMakeFiles/unibilium.dir/all] Error 2
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2/.deps'
make: *** [Makefile:98: deps] Error 2
make: Leaving directory '/tmp/tmp.ESk9Rwq2yS/neovim-0.10.2'
System information
- Your local OS:
Linux msi 6.6.77 #1-NixOS SMP PREEMPT_DYNAMIC Tue Feb 11 08:37:33 UTC 2025 x86_64 GNU/Linux - Local Neovim version:
v0.10.2 - Remote host OS (if applicable):
Linux zybo-linux 6.6.10-xilinx-v2024.1-g3af4295e00ef #1 SMP PREEMPT Sat Apr 27 05:22:24 UTC 2024 armv7l GNU/Linux - Remote Neovim version (if applicable):
v0.10.2