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
Ruairidh MacLeod
aa8023407e
fix dotnet build cleanup
2020-11-03 08:53:17 -08:00
Anthony Sottile
e05ac1e91f
don't call ruby install for language_version = default
2020-10-29 19:45:06 -07:00
Anthony Sottile
62b8d0ed82
allow default language_version of system when homedir is /
2020-10-28 22:56:10 -07:00
Anthony Sottile
7f9f66e542
don't use system for ruby/node if it is a shim exe
2020-10-28 16:52:55 -07:00
Anthony Sottile
29f3e67655
improve node install by using npm pack
2020-10-28 15:13:53 -07:00
Joseph Moniz
70ab1c3b6f
add coursier (jvm) as a language
2020-10-27 09:21:54 -07:00
Marco Gorelli
a0658c06bf
add --negate flag to pygrep
2020-10-17 18:50:40 +01:00
Anthony Sottile
3584b99caa
simplify docker run
2020-10-10 18:09:51 -07:00
Ruairidh MacLeod
003e4c21e0
add initial dotnet support
2020-09-27 15:04:35 -07:00
Anthony Sottile
58a190fd69
don't pass through -p if using the default version
2020-09-23 17:44:18 -07:00
Anthony Sottile
365f896c36
fix a few spelling errors
...
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:21:24 -07:00
Anthony Sottile
3e2b9dc91a
Merge pull request #1603 from pre-commit/no_format_executable
...
Fix ruby hooks when --format-executable is in gemrc
2020-09-18 09:37:41 -07:00
Anthony Sottile
13eed4ac5b
Fix ruby hooks when --format-executable is in gemrc
...
I used this gemrc to break things (default on opensuse):
```yaml
---
:benchmark: false
:install: --format-executable --no-user-install
install: --format-executable --no-user-install
:backtrace: true
:update_sources: true
:format_executable: true
:verbose: true
:update: --format-executable --no-user-install
update: --format-executable --no-user-install
:bulk_threshold: 1000
:sources:
- https://rubygems.org
```
2020-09-18 09:13:19 -07:00
Anthony Sottile
4888644990
remove hardcoded python location
2020-09-15 12:04:25 -07:00
Anthony Sottile
b149c7a344
fix for node healthy() when system executable moves
2020-09-07 13:23:02 -07:00
Anthony Sottile
b63b37ac36
fix cache of invalidated unhealthy environment version info
2020-08-23 10:17:24 -07:00
Ruairidh MacLeod
eb8b48aeb4
remove docker_is_running check from source
...
Moved to testing.util so it can be used for the skipif_cant_run_docker
test hooks.
2020-08-22 17:33:32 -07:00
Anthony Sottile
6ec47ea736
fix node hooks when NPM_CONFIG_USERCONFIG is set
2020-06-19 13:58:14 -07:00
Anthony Sottile
e1e6a32c51
skip rbenv if ruby and gem are installed with default language_version
2020-06-15 13:50:47 -07:00
Anthony Sottile
e120828042
use the shuffle method of Random instead
2020-05-31 12:42:17 -07:00
Anthony Sottile
0781dac78f
avoid a UnicodeError on windows with non-charmap characters
2020-05-27 13:14:29 -07:00