-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I have a startup.jl file wtih using Revise, and I get
❯ pre-commit run --all-files
[INFO] Installing environment for https://github.com/fredrikekre/runic-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/eph/.juliaup/bin/julia', '-e', '\n @assert length(ARGS) > 0\n hook_env = ARGS[1]\n deps = join(ARGS[2:end], " ")\n\n # We prepend @stdlib here so that we can load the package manager even\n # though `get_env_patch` limits `JULIA_LOAD_PATH` to just the hook env.\n pushfirst!(LOAD_PATH, "@stdlib")\n using Pkg\n popfirst!(LOAD_PATH)\n\n # Instantiate the environment shipped with the hook repo. If we have\n # additional dependencies we disable precompilation in this step to\n # avoid double work.\n precompile = isempty(deps) ? "1" : "0"\n withenv("JULIA_PKG_PRECOMPILE_AUTO" => precompile) do\n Pkg.instantiate()\n end\n\n # Add additional dependencies (with precompilation)\n if !isempty(deps)\n withenv("JULIA_PKG_PRECOMPILE_AUTO" => "1") do\n Pkg.REPLMode.pkgstr("add " * deps)\n end\n end\n ', '--', '/Users/eph/.cache/pre-commit/repos2p9yynj/juliaenv-default', '[email protected]')
return code: 1
stdout: (none)
stderr:
ERROR: LoadError: ArgumentError: Package Revise not found in current path.
- Run `import Pkg; Pkg.add("Revise")` to install the Revise package.
Stacktrace:
[1] macro expansion
@ ./loading.jl:2296 [inlined]
[2] macro expansion
@ ./lock.jl:273 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2271
[4] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[5] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2260
in expression starting at /Users/eph/.julia/config/startup.jl:3
Check the log at /Users/eph/.cache/pre-commit/pre-commit.logfredrikekre and IanButterworth
Metadata
Metadata
Assignees
Labels
No labels