Skip to content

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

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

Closed
3 tasks done
dmatos2012 opened this issue Apr 23, 2024 · 3 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@dmatos2012
Copy link

Checklist

  • I have searched through the AstroNvim docs
  • I have searched through the existing issues of AstroNvim
  • I have searched the existing issues of plugins related to this issue

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.)
@dmatos2012 dmatos2012 added the bug Something isn't working label Apr 23, 2024
@dmatos2012 dmatos2012 changed the title Error on running nvim docker image provided on website Error on installing mason-registry when running nvim docker image provided on website Apr 23, 2024
@mehalter mehalter transferred this issue from AstroNvim/AstroNvim Apr 23, 2024
@mehalter
Copy link
Member

Transferred the issue to the Docs repo

@mehalter
Copy link
Member

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

Fixed in efba06b

@dmatos2012
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants