mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 08:17:35 +00:00
Add fallback release-gitter install method
This commit is contained in:
parent
afa67c1b0c
commit
d3dc0a8766
@ -175,8 +175,7 @@ def install_linters(langs: set[Language]):
|
||||
if not maybe_run("lua", "-e", "require('lfs')"):
|
||||
maybe_run("luarocks", "--local", "install", "luafilesystem")
|
||||
maybe_run("luarocks", "--local", "install", "luacheck", "1.1.0")
|
||||
maybe_run(
|
||||
"release-gitter",
|
||||
maybe_release_gitter(selene=[
|
||||
"--git-url",
|
||||
"https://github.com/Kampfkarren/selene",
|
||||
"--exec",
|
||||
@ -184,7 +183,7 @@ def install_linters(langs: set[Language]):
|
||||
"--extract-files", "selene",
|
||||
"selene-{version}-{system}.zip",
|
||||
os.path.expanduser("~/bin"),
|
||||
)
|
||||
])
|
||||
if Language.DOCKER in langs:
|
||||
hadolint_arm64 = "arm64"
|
||||
if sys.platform == "darwin":
|
||||
@ -277,7 +276,15 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
# Release gitter is required for some tools
|
||||
maybe_pip_install("release-gitter")
|
||||
if not maybe_pip_install("release-gitter"):
|
||||
# Manual install
|
||||
maybe_run(
|
||||
"wget",
|
||||
"-O",
|
||||
os.path.expanduser("~/bin/release-gitter"),
|
||||
"https://git.iamthefij.com/iamthefij/release-gitter/raw/branch/main/release_gitter.py",
|
||||
)
|
||||
maybe_run("chmod", "+x", os.path.expanduser("~/bin/release-gitter"))
|
||||
|
||||
os.environ["PYTHONPATH"] = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user