removed gotests tag
This commit is contained in:
parent
9d5e8488c3
commit
1eef5a19d5
2 changed files with 6 additions and 11 deletions
|
|
@ -22,9 +22,6 @@ local default_config = {
|
||||||
},
|
},
|
||||||
---@class gopher.ConfigGotests
|
---@class gopher.ConfigGotests
|
||||||
gotests = {
|
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
|
-- gotests doesn't have template named "default" so this plugin uses "default" to set the default template
|
||||||
template = "default",
|
template = "default",
|
||||||
-- path to a directory containing custom test code templates
|
-- path to a directory containing custom test code templates
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,17 @@ local r = require "gopher._utils.runner"
|
||||||
local u = require "gopher._utils"
|
local u = require "gopher._utils"
|
||||||
local installer = {}
|
local installer = {}
|
||||||
|
|
||||||
local latest = "@latest"
|
|
||||||
|
|
||||||
local urls = {
|
local urls = {
|
||||||
gomodifytags = { "github.com/fatih/gomodifytags", latest },
|
gomodifytags = "github.com/fatih/gomodifytags",
|
||||||
impl = { "github.com/josharian/impl", latest },
|
impl = "github.com/josharian/impl",
|
||||||
gotests = { "github.com/cweill/gotests/...", require("gopher.config").gotests.tag },
|
gotests = "github.com/cweill/gotests/...",
|
||||||
iferr = { "github.com/koron/iferr", latest },
|
iferr = "github.com/koron/iferr",
|
||||||
dlv = { "github.com/go-delve/delve/cmd/dlv", latest },
|
dlv = "github.com/go-delve/delve/cmd/dlv",
|
||||||
}
|
}
|
||||||
|
|
||||||
---@param pkg string
|
---@param pkg string
|
||||||
local function install(pkg)
|
local function install(pkg)
|
||||||
local url = urls[pkg][1] .. urls[pkg][2]
|
local url = urls[pkg][1] .. "@latest"
|
||||||
r.sync(c.go, {
|
r.sync(c.go, {
|
||||||
args = { "install", url },
|
args = { "install", url },
|
||||||
on_exit = function(data, status)
|
on_exit = function(data, status)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue