aspect-build / aspect-build/rules_lint

[Bug]: Does not work unless it is a git repository

Open
#436 4 comments 0 reactions 1 assignee Claimed by @arrdem View on GitHub
bug
Dominant language
Starlark
Stars
154
Forks
125
Avg merge
3d 21h
Merged PRs (30d)
20

Description

### What happened?

I have been using jujutsu https://github.com/martinvonz/jj which is a Git-compatible DVCS.
Unfortunately format and format.check only work if it's a git repository.

```
> bazel run format.check
INFO: Invocation ID: 7569ea60-cd07-46c0-ac9f-cae2e8773c45
INFO: Analyzed target //:format.check (0 packages loaded, 3 targets configured).
INFO: Found 1 target...
Target //tools/format:format.check up-to-date:
bazel-bin/tools/format/format.check.bash
INFO: Elapsed time: 0.308s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/tools/format/format.check.bash
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
```

There should be a fallback where it just runs on all the files.

### Version

> bazel --version
bazel 7.4.0

> bazel_dep(name = "aspect_rules_lint", version = "1.0.3")

### How to reproduce

_No response_

### Any other information?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.