There was a problem hiding this comment.
rather than doing 3 or 4 things in a pr please split this up to do one thing at a time with clear tests demonstrating the reason for changes
Sorry, something went wrong.
| ) | ||
| ] | ||
| if version not in ('system', 'default'): | ||
| patches.append(('JULIAUP_CHANNEL', version)) |
There was a problem hiding this comment.
this isn't quite right. to properly support language_version pre-commit must install the language itself into the hook environment (and not outside of it such as in the juliaup managed directories)
Sorry, something went wrong.
There was a problem hiding this comment.
hm, pre-commit wants an entire copy of julia installed into the hook environment directory? that's very unusual for julia, which uses content-addressed read-only files and packages to allow reuse across environments. It would also make pre-commit install much slower for julia hooks than it currently is.
Sorry, something went wrong.
|
|
||
| def _make_src_hook(tmp_path, pkg_code, script_code): | ||
| # here we have a package with a src dir and a script dir | ||
| src_dir = tmp_path.joinpath('src') |
There was a problem hiding this comment.
feels like from this test this should get handled by the install process. the precedence of copying little bits out of this seems not great and we should find a way to do this step by step
Sorry, something went wrong.
There was a problem hiding this comment.
this is in the tests, so we're setting up an example with test files which do get copied as part of the install process
Sorry, something went wrong.
|
split into |
Sorry, something went wrong.
This PR fixes three issues I ran into when trying to use pre-commit's native Julia language support for ExplicitImports.jl (JuliaTesting/ExplicitImports.jl#100) in Pkg (JuliaLang/Pkg.jl#4326):
With these changes, JuliaLang/Pkg.jl#4329 can run successfully.