Commit Graph

282 Commits

Author SHA1 Message Date
Anthony Sottile
ae34a962d7 make in_env part of the language api 2023-01-16 15:36:29 -05:00
taoufik07
9afd63948e Make Go a first class language 2023-01-13 12:42:57 -05:00
Anthony Sottile
0dbc154380 Merge pull request #2672 from taoufik07/remove_gopath_special_build
Remove `GOPATH` special build
2023-01-02 19:32:08 -05:00
taoufik07
60a42e9419 Remove GOPATH special build 2023-01-02 18:53:14 -05:00
Anthony Sottile
8529a0c1d3 add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
Anthony Sottile
05c8911363 simplify environment_dir 2023-01-01 21:11:56 -05:00
Anthony Sottile
d05b7888ab move clean_path_on_failure out of each hook install 2023-01-01 20:04:58 -05:00
Anthony Sottile
0224be8194 Merge pull request #2667 from pre-commit/env-dir-always-non-null
remove None overload for environment_dir
2023-01-01 19:52:48 -05:00
Anthony Sottile
f0baffb01f remove None overload for environment_dir 2023-01-01 19:20:40 -05:00
Anthony Sottile
8e57e8075d avoid using hook.src in R language
this wasn't meant to be read -- hook.prefix works fine for local too
2023-01-01 19:02:20 -05:00
Anthony Sottile
40e69ce8e3 use modules as protocols 2022-12-27 11:46:11 -05:00
Ruairidh MacLeod
c38e0c7ba8 dotnet: ignore nuget source during tool install 2022-12-21 14:26:13 -05:00
Ruairidh MacLeod
e904628830 fix dotnet hooks with prefixes 2022-12-21 13:35:19 -05:00
Lorenz Walthert
52948f610c When R executable is an explicit path, we need to appene .exe on Windows 2022-12-12 13:21:55 -05:00
Anthony Sottile
6c524f7a55 fix rust platform detection on windows 2022-12-06 13:10:12 -05:00
marsha
84b38f7b89 Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
marsha
e703982de4 Change Rust to install environment with cargo add over toml 2022-10-28 21:32:52 -05:00
Anthony Sottile
0fe7a0baa6 Merge pull request #2460 from lorenzwalthert/binary-additional-deps
Enforce binary installs also for dependencies in R
2022-10-22 11:28:13 -07:00
Jan Holthuis
eb469c756d Rust as 1st class language 2022-10-10 20:05:36 -04:00
Lorenz Walthert
a568f3c818 enforce binary installs also for dependencies of R packages
Similar problem seems to be found in https://github.com/r-lib/devtools/issues/1724
2022-07-12 22:47:19 +01:00
Anthony Sottile
d8b59300ce remove imports from TYPE_CHECKING (py37+)
Committed via https://github.com/asottile/all-repos
2022-07-04 17:57:38 -04:00
Paul Gey
a54391e96f Force gem installation into GEM_HOME
When `--user-install` is set in the gemrc config file, `gem` ignores
`GEM_HOME`. `--no-user-install` prevents this behaviour.
2022-05-07 20:44:02 +02:00
Anthony Sottile
07554e9525 add additional info to healthy-after-install check 2022-04-16 16:46:28 -04:00
Walluce Pinkham
9b3df4b90e Handling multiple outputs from dotnet pack 2022-04-07 13:16:56 -04:00
Jeff Sullivan
764a0db68e use Rscript path relative to $R_HOME/bin/...
Co-authored-by: Lorenz Walthert <lorenz.walthert@icloud.com>
2022-04-02 14:22:29 -04:00
Anthony Sottile
2188c0fd2c include the configured value in the language_version / additional_dependencies error 2022-03-30 11:14:00 -04:00
Jan Holthuis
678ef6b9fd coursier: Add support for both cs and coursier executable names
On some systems, the executable might be named `coursier` instead of
`cs`. For example, this is the case on Arch Linux when using the AUR
package, or when following the official instructions when installing the
JAR-based launcher:

  https://get-coursier.io/docs/cli-installation#jar-based-launcher
2022-03-17 22:25:22 +01:00
Lorenz Walthert
65755af7e3 inline options() to always install binaries 2022-03-05 21:04:01 +01:00
Anthony Sottile
04de6a2e57 drop python 3.6 support
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Anthony Sottile
54331dca6f get lua version from luarocks itself 2022-01-17 15:46:36 -05:00
Matt Layman
3f8be7400d Add naive and untested version of Lua language support. 2022-01-17 13:43:38 -05:00
Uwe L. Korn
83aa65c429 Add mamba support to language: conda 2022-01-15 16:28:44 -05:00
Lorenz Walthert
1617692f12 no docs 2021-12-24 14:52:46 +01:00
Lorenz Walthert
b7331b653a unset renv project 2021-12-24 14:36:43 +01:00
Lorenz Walthert
ba496b8369 better r path detection 2021-12-24 14:01:18 +01:00
Ralf Schmitt
379db4cb88 Use 'go install' instead of 'go get'
`go install` is the recommended way to install modules starting from go 1.16.
In go 1.18 `go get` cannot be used anymore to install packages [1]. go 1.18 is
not released yet.

[1] https://tip.golang.org/doc/go1.18#go-command
2021-12-15 10:05:59 +01:00
Anthony Sottile
c8cf74dc71 replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:48 -04:00
Anthony Sottile
f8e21cb78b add support for dart as a hook language 2021-08-29 08:57:56 -07:00
Anthony Sottile
5d1cac64c1 ignore self-container when in docker-in-docker 2021-08-03 13:08:07 -07:00
Adar Nimrod
3e1020945e A more reliable way to get the container id.
The hostname is not always the container id. Get the container id from
/proc/1/cgroup. Fixes #1918.
2021-07-03 10:43:11 -07:00
Lorenz
788aec156f local r hooks should not get prefix for path 2021-05-05 18:15:56 -07:00
Anthony Sottile
c082292bb8 Merge pull request #1841 from lorenzwalthert/renv-activate2
Avoid warnings with R hooks when renv version don't match
2021-05-04 19:27:44 -07:00
Lorenz
b8fff8c508 Avoid warnings with R hooks when renv version don't match 2021-05-04 18:56:43 -07:00
Lorenz
a19a59652f Use more common package definition 2021-05-03 18:08:22 +02:00
Oleg Kainov
6d5d386c9f fix: fix path mounting when running in Docker
Currently pre-commit mounts the current directory to /src and uses
current directory name as mount base.
However this does not work when pre-commit is run inside the container
on some mounted path already, because mount points are relative to the
host, not to the container.

Fixes #1387
2021-04-28 19:21:34 -07:00
Lorenz
cf57e35e37 install package from prefix_dir, not env_dir (which yields empty pkg) 2021-03-09 16:44:36 -08:00
Lorenz
f1502119a2 add support for R via renv 2021-03-07 13:58:14 -08:00
Paul Fischer
34e0ff3497 added recursive repository support for golang 2021-02-06 12:52:41 -08:00
Anthony Sottile
7486dee082 fix for base executable with non-ascii characters on windows 2020-11-25 12:44:48 -08:00
Anthony Sottile
a3e3b3d8aa fix for rbenv used outside of pre-commit and language_version: default 2020-11-17 11:58:46 -08:00