removed gotests tag

This commit is contained in:
Alex Malykh 2023-11-26 00:46:15 +04:00
parent 9d5e8488c3
commit 1eef5a19d5
2 changed files with 6 additions and 11 deletions

View file

@ -22,9 +22,6 @@ local default_config = {
},
---@class gopher.ConfigGotests
gotests = {
-- gotests tag to install from
---@type string
tag = "@latest",
-- gotests doesn't have template named "default" so this plugin uses "default" to set the default template
template = "default",
-- path to a directory containing custom test code templates

View file

@ -3,19 +3,17 @@ local r = require "gopher._utils.runner"
local u = require "gopher._utils"
local installer = {}
local latest = "@latest"
local urls = {
gomodifytags = { "github.com/fatih/gomodifytags", latest },
impl = { "github.com/josharian/impl", latest },
gotests = { "github.com/cweill/gotests/...", require("gopher.config").gotests.tag },
iferr = { "github.com/koron/iferr", latest },
dlv = { "github.com/go-delve/delve/cmd/dlv", latest },
gomodifytags = "github.com/fatih/gomodifytags",
impl = "github.com/josharian/impl",
gotests = "github.com/cweill/gotests/...",
iferr = "github.com/koron/iferr",
dlv = "github.com/go-delve/delve/cmd/dlv",
}
---@param pkg string
local function install(pkg)
local url = urls[pkg][1] .. urls[pkg][2]
local url = urls[pkg][1] .. "@latest"
r.sync(c.go, {
args = { "install", url },
on_exit = function(data, status)