dependabot[bot]
3342559a24
Bump cachix/install-nix-action from 25 to 26 ( #47 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 12:21:37 +01:00
dependabot[bot]
3449dc9259
Bump cachix/install-nix-action from 24 to 25 ( #46 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 16:25:18 +01:00
dependabot[bot]
c843418ecf
Bump cachix/install-nix-action from 23 to 24 ( #45 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 14:47:22 +01:00
zimbatm
41fd48e00c
expose lib as a functor
...
This allows calling the nix-filter input directly. Eg:
outputs = { self, nix-filter }:
...
src = nix-filter {
root = self;
includes = [
./dir
];
};
2023-09-16 11:48:58 +02:00
dependabot[bot]
d6381c442f
Bump actions/checkout from 3 to 4 ( #43 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 14:12:50 +02:00
dependabot[bot]
ac030bd9ba
Bump cachix/install-nix-action from 22 to 23 ( #42 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 15:12:53 +02:00
dependabot[bot]
d90c75e831
Bump cachix/install-nix-action from 20 to 22 ( #39 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 20 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v22 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 14:43:52 +02:00
Jonas Chevalier
f529f42792
Merge pull request #37 from kai-tub/main
...
Add flake usage to README & skip CI on doc changes
2023-04-10 21:19:13 +02:00
Kai Norman Clasen
4656b65496
Skip CI if only MD files change
2023-04-10 18:34:09 +02:00
Kai Norman Clasen
f3972b8261
Add flake usage to README
2023-04-10 18:19:16 +02:00
dependabot[bot]
aa9ff6ce4a
Bump cachix/install-nix-action from 19 to 20 ( #36 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 14:31:55 +01:00
dependabot[bot]
fc282c5478
Bump cachix/install-nix-action from 18 to 19 ( #35 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 14:29:44 +01:00
zimbatm
e1b2f96c2a
repo: switch default branch to main
2023-02-02 19:03:57 +01:00
dependabot[bot]
1a3b735e13
Bump cachix/install-nix-action from 17 to 18 ( #33 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-23 19:57:02 +02:00
Jonas Chevalier
3b82157868
Merge pull request #31 from numtide/in-nix-store
...
In nix store
2022-08-22 22:59:16 +02:00
zimbatm
0f4a3f5059
handle /nix/store edge case
...
Workaround for this error:
error: access to absolute path '/nix/store' is forbidden in restricted mode
2022-08-22 22:05:36 +02:00
zimbatm
3d50f761b2
tests: evaluate the tests in restrict-eval mode
...
This simulates a stricter environment like flakes
2022-08-22 22:02:13 +02:00
zimbatm
88ec5a014d
fix store path reference
...
Handles this error:
error: the string 'mh6zkfrj8pmwbn8gsyi6wmrilj96d60y-fixture1' is not allowed to refer to a store path
This happens because the substring has the string context propagated to
it, and Nix doesn't like attrset accessor containing those. We know it's
safe to remove the string context because the string won't be added to a
derivation.
2022-08-22 21:55:34 +02:00
zimbatm
a8d78b0503
tests: show eval failures when running the tests
...
Otherwise it would just exit with an exit status and not show anything
on the display.
2022-08-22 21:55:34 +02:00
zimbatm
bbb901e786
tests: add broken store path test
2022-08-22 21:55:34 +02:00
zimbatm
318e18ecdc
fmt
2022-08-22 21:55:34 +02:00
ilkecan
825abbb40e
Make directories also match their descendants ( #27 )
...
From an end user perspective this makes `inDirectory` redundant.
Closes : #25
2022-08-11 14:18:14 +02:00
Farid Zakaria
3e1fff9ec0
Fix typo in README.md ( #26 )
...
path -> root for the attribute name of the functor.
2022-08-01 13:08:38 +02:00
Jonas Chevalier
3e81a637cd
matchName: filter out files or folders with this exact name ( #24 )
2022-05-26 20:47:46 +02:00
Bernardo Meurer
40a58baa24
feat(flake): add an overlay output ( #23 )
2022-04-13 10:30:35 +02:00
dependabot[bot]
ef50fe1865
Bump cachix/install-nix-action from 16 to 17 ( #22 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 13:32:48 +02:00
Michael Pontus
b0b96a3fc6
Fix typo ( #21 )
2022-03-26 13:23:55 +01:00
dependabot[bot]
e4e8649a3b
Bump actions/checkout from 2 to 3 ( #20 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-08 11:03:15 +01:00
ilkecan
38bc843f1c
Remove unused variables ( #19 )
2022-02-20 16:37:55 +01:00
zimbatm
26dd9843a9
README: improve wording a bit
2022-01-17 11:45:01 +01:00
ilkecan
19047287c7
Use pathExists
instead of isPath
in assertion ( #16 )
...
What an asserted directory should be is:
- an absolute path
- of an existing
- directory.
`isPath` is too strict in this case since it doesn't allow strings.
`pathExists` checks for the first two property while the last one is
asserted with `readDir`.
2022-01-17 11:35:27 +01:00
ilkecan
676da531f1
Don't match parents while excluding a path ( #13 )
2022-01-17 11:35:14 +01:00
Doron Behar
bd03eb5242
README: Recommend using include and not only exclude ( #12 )
2022-01-05 19:32:37 +01:00
David Arnold
2a06837d4d
fix: oversight in debugMatch ( #14 )
...
debugMatch has to pass the matcher transparently to its wrapped
matcher
2022-01-05 19:32:03 +01:00
zimbatm
73cb41e2df
ci: bump install-nix-action 13 -> 16
2022-01-05 19:31:51 +01:00
David Arnold
2fb0d9f0be
doc: clarify XOR for include
& exclude
( #15 )
...
While the wording already implied it, this clarification makes it
clear in the context of the `or_` combinator.
2022-01-05 19:27:58 +01:00
zimbatm
3c9e33ed62
rename or to or_
...
"or" is a keyword in Nix.
Fixes #8
2021-05-05 10:22:00 +02:00
zimbatm
e720715870
README: improve content
2021-05-05 10:15:45 +02:00
Jonas Chevalier
cf06efe613
Merge pull request #7 from robwhitaker/easy-test-cases
...
Make test cases runnable
2021-05-02 13:54:08 +02:00
Rob Whitaker
763f87932b
Process output with jq, pretty print, and return bad retcode on failures
2021-05-01 00:47:09 -04:00
zimbatm
ee154f4b76
add CI
2021-04-30 10:08:24 +02:00
zimbatm
3d61bba8d1
format with nixpkgs-fmt
2021-04-30 10:08:14 +02:00
zimbatm
c1eddafe8e
tests/run-tests.sh: allow to run script from top-level
2021-04-30 09:54:30 +02:00
Rob Whitaker
46af6efca5
Make test cases runnable
...
Fixes #6
2021-04-29 20:22:12 -04:00
Jonas Chevalier
08602032e4
allow to combine matchers ( #4 )
2021-04-29 23:12:16 +00:00
zimbatm
a1a479f190
automatically match parent folders
...
If "src/foo" is used, automatically match the "src" folder.
Fixes #3
2021-04-29 21:55:25 +02:00
Robert Whitaker
21e58193e0
Make paths also match subdirectories ( #2 )
...
* Make paths also match subdirectories
This makes matchers that are generated for strings and paths treat the
path as a prefix instead of as the entire path, allowing a path to also
match its subdirectories and contained files.
This allows patterns like `"src"` to also match by default:
- `src/folder_x`
- `src/folder_x/folder_y`
- etc.
* Turn _isPathPrefix into new matcher and restore previous default path behavior
* Update inDirectory to compare string prefixes instead of path segments
This avoids the extra work of splitting the paths into segments and
comparing them piece by piece.
* proposed change
Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2021-04-29 21:48:37 +02:00
Ollie Charles
7aa08b3451
Update README.md ( #1 )
...
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-04-27 10:07:32 +02:00
zimbatm
f5342b3099
add logo :)
2021-04-27 10:06:18 +02:00
Jonas Chevalier
5f7f892143
Update README.md
2021-04-24 16:27:53 +02:00