refactor
This commit is contained in:
parent
294da43421
commit
2bb372966b
2 changed files with 3 additions and 4 deletions
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
|
@ -48,6 +48,7 @@ jobs:
|
|||
|
||||
- name: Install Go bins
|
||||
run: |
|
||||
# TODO: install with :GoInstallDeps
|
||||
go install github.com/fatih/gomodifytags@latest
|
||||
go install github.com/josharian/impl@latest
|
||||
go install github.com/cweill/gotests/...@latest
|
||||
|
|
|
|||
|
|
@ -40,13 +40,11 @@ end
|
|||
---@param sync? boolean
|
||||
function installer.install_deps(sync)
|
||||
sync = sync or false
|
||||
|
||||
for pkg, _ in pairs(urls) do
|
||||
local url = urls[pkg] .. "@latest"
|
||||
if sync then
|
||||
install_sync(url)
|
||||
install_sync(urls[pkg] .. "@latest")
|
||||
else
|
||||
install(url)
|
||||
install(urls[pkg] .. "@latest")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue