Skip to content

Commit

Permalink
Add prettier to precious config for tidying Markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Sep 5, 2022
1 parent 46b65de commit 42b6be7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/node_modules
/package-lock.json
/package.json
/target
63 changes: 25 additions & 38 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,112 +1,99 @@
## 0.0.15 - 2022-09-05

* Added a `--self-upgrade` flag, which will use `ubi` to upgrade `ubi`. Note
- Added a `--self-upgrade` flag, which will use `ubi` to upgrade `ubi`. Note
that this flag does not work on Windows.

## 0.0.14 - 2022-09-04

* Added a `--url` flag as an alternative to `--project`. This bypasses the
- Added a `--url` flag as an alternative to `--project`. This bypasses the
need for using the GitHub API, so you don't have to worry about the API
limits. This is a good choice for use in CI.


## 0.0.13 - 2022-09-01

* Releases are now downloaded using the GitHub REST API instead of trying to
- Releases are now downloaded using the GitHub REST API instead of trying to
just download a tarball directly. This lets `ubi` download releases from
private projects.


## 0.0.12 - 2022-07-04

* Bare xz-compressed binaries are now handled properly. Previously ubi would
- Bare xz-compressed binaries are now handled properly. Previously ubi would
download and "install" the compressed file as an executable. Now ubi will
uncompress this file properly. Based on PR #19 from Marco Fontani.
* Fixed a bug in handling of xz-compressed tarballs. There was some support
- Fixed a bug in handling of xz-compressed tarballs. There was some support
for this, but it wasn't complete. These should now be handled just like
other compressed tarballs.


## 0.0.11 - 2022-07-03

* Improved handling of urls passed to `--project` so any path that contains an
- Improved handling of urls passed to `--project` so any path that contains an
org/user and repo works. For example
`https://github.com/houseabsolute/precious/releases` and
`https://github.com/BurntSushi/ripgrep/pull/2049` will now work.
* All Linux binaries are now compiled with musl statically linked instead of
- All Linux binaries are now compiled with musl statically linked instead of
dynamically linking glibc. This should increase portability.
* The Linux ARM target is now just "arm" instead of "armv7", without hard
- The Linux ARM target is now just "arm" instead of "armv7", without hard
floats ("hf"). This should make the ARM binary more portable.


## 0.0.10 - 2022-07-02

* Fixed releases for Linux ARM64 and ARM 32-bit. The 32-bit release was
- Fixed releases for Linux ARM64 and ARM 32-bit. The 32-bit release was
getting uploaded as aarch64.


## 0.0.9 - 2022-07-02

* This release includes native binaries for Linux ARM64 and ARM (32-bit).
* Added a new flag, `--matching`, which can be used to pick a specific release
- This release includes native binaries for Linux ARM64 and ARM (32-bit).
- Added a new flag, `--matching`, which can be used to pick a specific release
file when there are multiple matching options for your OS and CPU
architecture. Based on PR #18 from Marco Fontani. Fixes #17.
* When there multiple matches and `--matching` is not given, the same release
- When there multiple matches and `--matching` is not given, the same release
file will always be picked. Previously this was not guaranteed.
* Improved filtering of 32-bit executables when running on 64-bit machines.

- Improved filtering of 32-bit executables when running on 64-bit machines.

## 0.0.8 - 2022-04-25

* No code changes from the last release. The binary releases built by GitHub
- No code changes from the last release. The binary releases built by GitHub
Actions now build on Ubuntu 18.04 instead of 20.04. This restores
compatibility with systems using glibc 2.27. Reported by Olaf Alders. GH
#16.
* This release also includes native ARM64 binaries for macOS 11+.

- This release also includes native ARM64 binaries for macOS 11+.

## 0.0.7 - 2022-04-23

* Include "x64" as a match for the `x86_64` architecture.

- Include "x64" as a match for the `x86_64` architecture.

## 0.0.6 - 2021-01-15

* Changed CPU architecture matching to be stricter based on the current
- Changed CPU architecture matching to be stricter based on the current
platform's CPU.
* Changed file extension mapping to work of an allowed list of
- Changed file extension mapping to work of an allowed list of
extensions. This is stricter than the previous check, which just filtered
out a few things like `.deb` and `.rpm`.


## 0.0.5 - 2021-01-15

* Include s390 and s390x in possible arch list. This also fixes a bug where
- Include s390 and s390x in possible arch list. This also fixes a bug where
that arch might be used when running `ubi` on any platform.
* Ignore `.deb` and `.rpm` files.
* Look for multiple valid files to download and prefer 64-bit binaries on
- Ignore `.deb` and `.rpm` files.
- Look for multiple valid files to download and prefer 64-bit binaries on
64-bit CPUs.


## 0.0.4 - 2021-01-15

* Add support for releases which are either the bare executable or a gzipped
- Add support for releases which are either the bare executable or a gzipped
executable, like rust-analyzer.


## 0.0.3 - 2021-01-15

* Update tokio and other async deps to avoid panics and eliminate deprecated
- Update tokio and other async deps to avoid panics and eliminate deprecated
net2 crate from dep tree.


## 0.0.2 - 2021-01-09

* When running on Windows, add ".exe" to the user-supplied --exe name if it
- When running on Windows, add ".exe" to the user-supplied --exe name if it
doesn't already have it. This makes it simpler to use ubi with the exact
same invocation across platforms.


## 0.0.1 - 2021-01-07

* First release
- First release
1 change: 1 addition & 0 deletions dev/bin/install-dev-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function install_tools () {
run "rustup component add clippy"
run "ubi --project houseabsolute/precious --in ~/bin"
run "ubi --project houseabsolute/omegasort --in ~/bin"
run "npm install [email protected]"
}

if [ "$1" == "-v" ]; then
Expand Down
9 changes: 9 additions & 0 deletions precious.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ tidy_flags = "--in-place"
ok_exit_codes = 0
lint_failure_exit_codes = 1
expect_stderr = true

[commands.prettier]
type = "both"
include = "**/*.md"
cmd = [ "./node_modules/.bin/prettier" ]
lint_flags = "--check"
tidy_flags = "--write"
ok_exit_codes = 0
lint_failure_exit_codes = 1

0 comments on commit 42b6be7

Please sign in to comment.