Commit Graph

39 Commits

Author SHA1 Message Date
renovate[bot]
d999f7afac
fix(deps): update github.com/go-git/go-billy/v5 digest to 5f263c9 2024-09-30 17:14:07 +00:00
renovate[bot]
2dde3e084f
fix(deps): update github.com/go-git/go-git/v5 digest to d184322 2024-09-30 13:05:34 +00:00
renovate[bot]
5a0bd7ea49
fix(deps): update github.com/go-git/go-billy/v5 digest to c1ee0b9 2024-09-27 13:30:23 +00:00
renovate[bot]
7bfb488232
fix(deps): update github.com/go-git/go-git/v5 digest to 8a7ce81 2024-09-25 09:50:12 +00:00
renovate[bot]
e480442b88
fix(deps): update github.com/go-git/go-billy/v5 digest to 9745bbb 2024-09-24 10:10:32 +00:00
renovate[bot]
539a3d0a51
fix(deps): update github.com/go-git/go-billy/v5 digest to b0c83ca 2024-09-17 11:25:10 +00:00
renovate[bot]
6ac575f3a6
fix(deps): update module github.com/alecthomas/kong to v1.2.1 2024-09-12 03:01:14 +00:00
renovate[bot]
79e50196da
fix(deps): update module github.com/alecthomas/kong to v1 2024-09-11 01:30:38 +00:00
renovate[bot]
10846e9cb2
fix(deps): update github.com/go-git/go-git/v5 digest to 9cf0e3e 2024-09-06 15:46:44 +00:00
renovate[bot]
1629eb36a8
fix(deps): update github.com/go-git/go-billy/v5 digest to 04d471a 2024-09-06 09:27:17 +00:00
renovate[bot]
bf42263f7c
fix(deps): update github.com/go-git/go-git/v5 digest to cef892e 2024-09-05 17:08:29 +00:00
zimbatm
5306a5e092 fix: resolve commands relative to the root
When configuring treefmt with relative paths to commands, for example if
you want to create your own repo-specific wrappers, treefmt would fail
if executed in a sub-directory.

This change makes sure that the relative path is resolved based on the
treefmt root instead of the current directory.
2024-08-29 16:17:00 +00:00
renovate[bot]
b3c3780ac2
fix(deps): update github.com/go-git/go-billy/v5 digest to 59c50b0 2024-08-29 15:55:41 +00:00
renovate[bot]
6f90572809
fix(deps): update github.com/go-git/go-git/v5 digest to 5c762ae 2024-08-21 20:10:56 +00:00
renovate[bot]
dabe74c0dc
fix(deps): update github.com/go-git/go-git/v5 digest to 6d58352 2024-08-21 10:35:03 +00:00
renovate[bot]
5bf4d7de8b
fix(deps): update module go.etcd.io/bbolt to v1.3.11 2024-08-21 10:29:11 +00:00
renovate[bot]
06c11f2696
fix(deps): update github.com/go-git/go-billy/v5 digest to 9b48418 2024-08-19 21:47:44 +00:00
renovate[bot]
6657787b2c
fix(deps): update github.com/go-git/go-billy/v5 digest to eaed248 2024-08-15 11:06:34 +00:00
renovate[bot]
7a4afc5a50
fix(deps): update github.com/go-git/go-git/v5 digest to 4fd9979 2024-08-15 11:01:24 +00:00
renovate[bot]
f9eb50dbd6
fix(deps): update github.com/go-git/go-git/v5 digest to c594bae 2024-08-08 09:01:46 +01:00
renovate[bot]
4b47080dff
fix(deps): update github.com/go-git/go-git/v5 digest to db559f1 2024-08-07 14:19:02 +00:00
renovate[bot]
a09b6c24a1
fix(deps): update github.com/go-git/go-billy/v5 digest to fac749f 2024-08-07 15:16:27 +01:00
renovate[bot]
b2d05e4cf9
fix(deps): update module golang.org/x/sync to v0.8.0 2024-08-07 15:04:18 +01:00
renovate[bot]
2d583a9627
fix(deps): update github.com/go-git/go-git/v5 digest to b430952 (#369)
Some checks are pending
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
golangci-lint / lint (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 21:33:03 +02:00
mergify[bot]
7fbe1f62b6
Merge branch 'main' into renovate/github.com-burntsushi-toml-1.x 2024-08-01 14:29:17 +00:00
renovate[bot]
8a65f400b4
fix(deps): update module github.com/burntsushi/toml to v1.4.0 2024-08-01 14:28:28 +00:00
renovate[bot]
26765d04e4
fix(deps): update github.com/go-git/go-billy/v5 digest to 69f6dc8 2024-08-01 14:27:48 +00:00
renovate[bot]
06066498ec
fix(deps): update module github.com/adrg/xdg to v0.5.0 2024-08-01 08:33:36 +00:00
renovate[bot]
fac7d8fdd4
fix(deps): update github.com/go-git/go-git/v5 digest to 61f8d68 2024-08-01 04:52:45 +00:00
Brian McGee
3649e4789c
fix: support core.untrackedCache in git
Switches go-git to master for now until a new release is cut.

Related to: https://github.com/nix-community/infra/pull/1266

Fixes #293

Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-17 09:38:22 +01:00
Brian McGee
24114f5e0c
feat: update go modules
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-17 09:21:21 +01:00
Brian McGee
a79ae9583c
feat: add cpu profile flag 2024-05-06 16:05:10 +01:00
Brian McGee
28ec6f8f92
feat: upgrade modules
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-03 13:35:30 +01:00
Brian McGee
1002f052e1
feat: update module go version to 1.22
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-03 13:33:33 +01:00
Brian McGee
5711caebb9 feat: support .gitignore files (#19)
Introduces a `--walk` flag which can be used to tell `treefmt` how to traverse the directory specified by `--tree-root`.

By default, it will attempt to use `git ls-files`. If this fails, it falls back to using the filesystem.

You can explicitly traverse the filesystem instead of using git by providing `--walk filesystem`.

Close #1

Reviewed-on: https://git.numtide.com/numtide/treefmt/pulls/19
Reviewed-by: Jonas Chevalier <zimbatm@noreply.git.numtide.com>
Co-authored-by: Brian McGee <brian@bmcgee.ie>
Co-committed-by: Brian McGee <brian@bmcgee.ie>
2024-01-11 20:52:22 +00:00
zimbatm
1019851207 chore: remove dependency on juju/errors (#11)
The package was created before Go introduced their own "errors"
package.

Trade the better juju errors semantic for a smaller dependency tree.

Reviewed-on: https://git.numtide.com/numtide/treefmt/pulls/11
Co-authored-by: zimbatm <zimbatm@zimbatm.com>
Co-committed-by: zimbatm <zimbatm@zimbatm.com>
2024-01-02 10:33:50 +00:00
Brian McGee
9b84155265
feat: allow specifying formatters in cli
Closes #9
2023-12-25 12:26:18 +00:00
Brian McGee
298e5ac217
feat: change module root to git.numtide.com 2023-12-23 13:39:16 +00:00
Brian McGee
6904097171
feat: initial import 2023-12-23 12:50:51 +00:00