AstroNvim / docs

Site for AstroNvim
https://docs.astronvim.com
23 stars 60 forks source link

Error on installing `mason-registry` when running `nvim` docker image provided on website #152

Closed dmatos2012 closed 4 months ago

dmatos2012 commented 4 months ago

Checklist

Neovim version (nvim -v)

0.9.5 MinSizeRel

Operating system/version

docker image

Terminal/GUI

kitty

Describe the bug

Running the docker command from the website https://docs.astronvim.com/ fails with screenshot below. Neovim starts but still there is that error on mson whcih does not allow me to run :LspInstall pyright etc.

Steps to Reproduce

docker run -w /root -it --rm alpine:edge sh -uelic '
  apk add bash git lua nodejs npm lazygit bottom python3 go neovim ripgrep alpine-sdk --update
  # Replace with your own configuration repository to load a user configuration
  git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
  nvim

Expected behavior

No errors

Screenshots

image

Additional Context

No response

Repro

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", branch = "v4", import = "astronvim.plugins" },

  -- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)
mehalter commented 4 months ago

Transferred the issue to the Docs repo

mehalter commented 4 months ago

Looks like we need to add curl as a dependency. Thanks for reporting!

Fixed in https://github.com/AstroNvim/docs/commit/efba06b18e229b1a03d67095571fadef1fb5c756

dmatos2012 commented 4 months ago

Yep, that fixed it! Thanks for the quick fix !!