From 439ae3021c8a535c93176f08866b2a0d16563dfc Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 20 Mar 2025 14:07:10 +0200 Subject: [PATCH] refactor(installer): automatically install gotests@develop --- lua/gopher/installer.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lua/gopher/installer.lua b/lua/gopher/installer.lua index 526e688..adcbec6 100644 --- a/lua/gopher/installer.lua +++ b/lua/gopher/installer.lua @@ -5,10 +5,10 @@ local log = require "gopher._utils.log" local installer = {} local urls = { - gomodifytags = "github.com/fatih/gomodifytags", - impl = "github.com/josharian/impl", - gotests = "github.com/cweill/gotests/...", - iferr = "github.com/koron/iferr", + gomodifytags = "github.com/fatih/gomodifytags@latest", + impl = "github.com/josharian/impl@latest", + gotests = "github.com/cweill/gotests/...@develop", + iferr = "github.com/koron/iferr@latest", } ---@param opt vim.SystemCompleted @@ -40,8 +40,7 @@ end ---@param opts? {sync:boolean} function installer.install_deps(opts) opts = opts or {} - for pkg, _ in pairs(urls) do - local url = urls[pkg] .. "@latest" + for url, _ in pairs(urls) do if opts.sync then install_sync(url) else