Skip to content

[CI][Dev] pre-commit cache for R doesn't work #46805

Closed
@kou

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

https://github.com/apache/arrow/actions/runs/15630677318/job/44034080823?pr=46802#step:5:18

R Lint...................................................................Failed
- hook id: lintr
- exit code: 1

Error in loadNamespace(x) : there is no package called ‘lintr’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

R Format.................................................................Failed
- hook id: styler
- exit code: 1

Error in loadNamespace(x) : there is no package called ‘styler’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Error in loadNamespace(x) : there is no package called ‘styler’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Error in loadNamespace(x) : there is no package called ‘styler’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Error in loadNamespace(x) : there is no package called ‘styler’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

It seems that R packages aren't cached in ~/.cache/pre-commit with pre-commit on Ubuntu 22.04.

Component(s)

Continuous Integration, Developer Tools

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions