Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to v0.2.5 #11

Merged
merged 51 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
8a2e38c
clarify benchmark comparison
Jan 10, 2025
08c7b40
fix adoc syntax in md file
Jan 10, 2025
a827537
update demo image
Jan 10, 2025
8814f4d
improve logging
Jan 11, 2025
8ee76c4
use canonical package path
Jan 11, 2025
abf3982
update installation instructions
Jan 11, 2025
ac5158e
log changes
Jan 11, 2025
9ea1b43
unify cargo usage in README
Jan 11, 2025
cdf8d37
update dependencies
Jan 11, 2025
6513461
chore: Release nps version 0.2.3-rc.1
Jan 11, 2025
7603c5a
improve error handling
Jan 12, 2025
7591665
fix inconsistent separating lines
Jan 12, 2025
32790fd
exit with failure exit status for no matches
Jan 12, 2025
34782bd
log changes
Jan 12, 2025
8be199c
fix padding in channel searches
Jan 12, 2025
d61c030
install cargo-edit for package management
Jan 12, 2025
6a884c2
update packages
Jan 12, 2025
015aafd
chore: Release nps version 0.2.3-rc.2
Jan 12, 2025
fdbf01a
deprecate installation via defaultPackage
Jan 15, 2025
d0bbfcd
format flake
Jan 15, 2025
73fba8a
support flake-less systems
Jan 15, 2025
3424374
update dependencies
Jan 15, 2025
443c593
chore: Release nps version 0.2.3-rc.3
Jan 15, 2025
52d9803
update documentation
Jan 17, 2025
c0bdc3d
be more explicit in flake.nix
Jan 17, 2025
b61a469
automate releases
Jan 17, 2025
55660bb
chore: Release nps version 0.2.3-rc.4
Jan 17, 2025
dfe6abe
fix GitHub Actions release script
Jan 17, 2025
a536267
chore: Release nps version 0.2.3-rc.5
Jan 17, 2025
bbe4d52
fix GitHub Actions release script
Jan 17, 2025
93f23a4
chore: Release nps version 0.2.3-rc.6
Jan 17, 2025
f7f464a
fix GitHub Actions release script
Jan 17, 2025
cf152e0
update release instructions
Jan 17, 2025
db000f2
chore: Release nps version 0.2.3
Jan 17, 2025
723c621
fix CHANGELOG.md formatting
Jan 18, 2025
42799d6
fix error message text
Jan 18, 2025
d7af616
enable for fast-worward merge
Jan 18, 2025
7cccad5
update development documentation for merges
Jan 18, 2025
493a527
chore: Release nps version 0.2.4-rc.1
Jan 18, 2025
2c9ecae
add -q/--quiet option
Jan 18, 2025
cccb4ac
improve messages
Jan 18, 2025
5f57e96
log changes
Jan 18, 2025
7c363c5
chore: Release nps version 0.2.4-rc.2
Jan 18, 2025
8c1de79
fix GitHub Actions naming
Jan 18, 2025
2a6bb61
fix channel-specific messages
Jan 18, 2025
94dc242
fix run-once instructions for non-flake systems
Jan 18, 2025
0e2e9db
add tests
Jan 18, 2025
46a68a1
log changes
Jan 18, 2025
1f2f615
chore: Release nps version 0.2.4
Jan 18, 2025
44375c3
use llvm engine for code coverage
Jan 18, 2025
e7f3c76
chore: Release nps version 0.2.5
Jan 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Generate code coverage
run: |
RUST_LOG=TRACE cargo-tarpaulin --verbose --all-features --workspace --timeout 360 --out xml --follow-exec -- --include-ignored
RUST_LOG=TRACE cargo-tarpaulin --engine llvm --verbose --all-features --workspace --timeout 360 --out xml --follow-exec -- --include-ignored

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/fast-forward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Fast-Forward
on:
issue_comment:
types: [created, edited]
jobs:
fast-forward:
# Only run if the comment contains the /fast-forward command.
if: ${{ contains(github.event.comment.body, '/fast-forward')
&& github.event.issue.pull_request }}
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
issues: write

steps:
- name: Fast forwarding
uses: sequoia-pgp/fast-forward@v1
with:
merge: true
# To reduce the workflow's verbosity, use 'on-error'
# to only post a comment when an error occurs, or 'never' to
# never post a comment. (In all cases the information is
# still available in the step's summary.)
comment: always
25 changes: 25 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull Request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
check-fast-forward:
runs-on: ubuntu-latest

permissions:
contents: read
# We appear to need write permission for both pull-requests and
# issues in order to post a comment to a pull request.
pull-requests: write
issues: write

steps:
- name: Checking if fast forwarding is possible
uses: sequoia-pgp/fast-forward@v1
with:
merge: false
# To reduce the workflow's verbosity, use 'on-error'
# to only post a comment when an error occurs, or 'never' to
# never post a comment. (In all cases the information is
# still available in the step's summary.)
comment: always
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
pull_request:
branches:
- main

permissions:
contents: write

jobs:
release:
name: release nps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release text
run: |
TAG=$(grep "## \[" CHANGELOG.md | head -n 2 | tail -n 1 | sed "s/^## \\[\(.*\)\\].*/\1/")
echo "Tag: '${TAG}'"
sed -e "/^## \\[${TAG}\\]/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md
echo >> RELEASE.md
sed -e "/^\\[${TAG}\\]: / ! d;s/^\\[${TAG}\\]: \(.*\)/**Full Changelog**: \1/" CHANGELOG.md >> RELEASE.md
echo "Release text:"
cat RELEASE.md
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(grep "## \[" CHANGELOG.md | head -n 2 | tail -n 1 | sed "s/^## \\[\(.*\)\\].*/\1/")
gh release create v"$TAG" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} v${TAG#v}" \
--notes-file="./RELEASE.md" \
--draft
29 changes: 28 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

## [0.2.5] - 2025-01-18

## [0.2.4] - 2025-01-18

### Added
- Non-debug messages for better feedback
- Quiet option `-q/--quiet` to suppress non-debug messages

### Fixed
- Run instructions for channel systems

## [0.2.3] - 2025-01-17

### Added
- Automated releases

### Deprecated
- Installation via 'defaultPackage', use 'packages.\<system\>.default' instead

### Fixed
- Update documentation
- Improve logging
- Minor bugfixes

## [0.2.2] - 2025-01-10

### Added
Expand Down Expand Up @@ -98,7 +122,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Versioning now adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

<!-- next-url -->
[Unreleased]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.2...development
[Unreleased]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.5...development
[0.2.5]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.4...v0.2.5
[0.2.4]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/OleMussmann/Nix-Package-Search/compare/v0.1.6...v0.2.0
Expand Down
83 changes: 74 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nps"
version = "0.2.2"
version = "0.2.5"
description = "Find SEARCH_TERM in available nix packages and sort results by relevance"
authors = ["Ole Mussmann <[email protected]>"]
homepage = "https://github.com/OleMussmann/Nix-Package-Search"
Expand All @@ -11,17 +11,18 @@ readme = "README.md"
edition = "2021"

[dependencies]
clap = { version = "4.5.23", features = ["derive", "env", "string"] }
clap = { version = "4.5.26", features = ["derive", "env", "string"] }
env_logger = "0.11.6"
grep = "0.3.2"
home = "0.5.11"
log = "0.4.22"
regex = "1.11.1"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.134"
tempfile = "3.14.0"
serde_json = "1.0.135"
tempfile = "3.15.0"
termcolor = "1.4.1"

[dev-dependencies]
assert_cmd = "2.0.16"
predicates = "3.1.3"
temp-env = "0.3.6"
Loading
Loading