Skip to content

Releases: korandoru/hawkeye

v5.5.1

24 Apr 07:16
v5.5.1
abbb3d3
Compare
Choose a tag to compare

Install hawkeye 5.5.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.5.1/hawkeye-installer.sh | sh

Download hawkeye 5.5.1

File Platform Checksum
hawkeye-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
hawkeye-x86_64-apple-darwin.tar.xz Intel macOS checksum
hawkeye-x86_64-pc-windows-msvc.zip x64 Windows checksum
hawkeye-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum

v5.5.0

24 Apr 04:25
v5.5.0
5dfb97e
Compare
Choose a tag to compare

Install hawkeye 5.5.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.5.0/hawkeye-installer.sh | sh

Download hawkeye 5.5.0

File Platform Checksum
hawkeye-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
hawkeye-x86_64-apple-darwin.tar.xz Intel macOS checksum
hawkeye-x86_64-pc-windows-msvc.zip x64 Windows checksum
hawkeye-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum

v5.4.0

31 Mar 05:55
v5.4.0
8a43499
Compare
Choose a tag to compare

Install hawkeye 5.4.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.4.0/hawkeye-installer.sh | sh

Download hawkeye 5.4.0

File Platform Checksum
hawkeye-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
hawkeye-x86_64-apple-darwin.tar.xz Intel macOS checksum
hawkeye-x86_64-pc-windows-msvc.zip x64 Windows checksum
hawkeye-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum

v5.3.2

29 Mar 23:41
v5.3.2
3376d16
Compare
Choose a tag to compare

Install hawkeye 5.3.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.3.2/hawkeye-installer.sh | sh

Download hawkeye 5.3.2

File Platform Checksum
hawkeye-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
hawkeye-x86_64-apple-darwin.tar.xz Intel macOS checksum
hawkeye-x86_64-pc-windows-msvc.zip x64 Windows checksum
hawkeye-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum

v5.3.1

28 Mar 00:40
v5.3.1
4a359ea
Compare
Choose a tag to compare

Install hawkeye 5.3.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.3.1/hawkeye-installer.sh | sh

Download hawkeye 5.3.1

File Platform Checksum
hawkeye-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
hawkeye-x86_64-apple-darwin.tar.xz Intel macOS checksum
hawkeye-x86_64-pc-windows-msvc.zip x64 Windows checksum
hawkeye-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum

v5.2.1

25 Mar 08:12
v5.2.1
4795c3f
Compare
Choose a tag to compare

What's Changed

  • build: docker image should have build info by @tisonkun in #128

Full Changelog: v5.2.0...v5.2.1

v5.2.0

25 Mar 07:45
v5.2.0
fe8d63c
Compare
Choose a tag to compare

What's Changed

  • build: try workaround workdir in container is not owned by current user by @tisonkun in #118
  • fix: remove file only header should take the last license line by @tisonkun in #119
  • refactor: migrate git2 to gix by @tisonkun in #121
  • ci: bump build-push-action and update docs by @tisonkun in #122
  • ci: add gha smoke test by @tisonkun in #125
  • feat: support .mbt extension for moonbit language by @DiamondMofeng in #124
  • ci: GHA smoke test use local build image by @tisonkun in #127
  • refactor: avoid the GitHelper and instead keep data on the stack by @Byron in #126

New Contributors

Full Changelog: v5.0.1...v5.2.0

v5.0.1

24 Mar 05:06
v5.0.1
abf2a97
Compare
Choose a tag to compare

v5.0.0

24 Mar 01:48
v5.0.0
7546d07
Compare
Choose a tag to compare

Full Changelog: v4.0.5...v5.0.0

Rewrite it in Rust, to fully get rid of the Native Image x Docker Image shit.

So all the JVM related distributions have gone now. Namely the alpha Maven plugin. alpha Gradle plugin, and executable JAR. I suppose that fewer people use these distributions and they can still get it from <=v4.

Docker images are not affected. You can still use:

docker run --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native:v5 format

But now the hawkeye-native image is the same as hawkeye (~28MB).

In addition, you can now install hawkeye via Cargo:

cargo install hawkeye

All the underneath functionality should be the same, except those related to JVM classpath is not a thing now.

It's still possible we distribute this native tool as a Maven plugin / Gradle plugin. Just as Docker written in Golang has the related plugin. But the approach would be quite different and the platform-toolchain classifier is still absent in the Java world, making a challenge to bridge Rust and Java. os-detector may help, but an expose from JVM's reflection would be desired (Not object reflection, I mean, JVM provides APIs to describe itself, including platform, toolchain, and other build/platform info).

Back to HawkEye.

You can use HawkEye in GitHub Actions or in your local machine. HawkEye provides three basic commands:

# check license headers
hawkeye check

# format license headers (auto-fix all files that failed the check)
hawkeye format

# remove license headers
hawkeye remove

You can use -h or --help to list out all config options.

GitHub Actions

The HawkEye GitHub Action enables users to run license header check by HawkEye with a config file.

First of all, add a licenserc.toml file in the root of your project. The simplest config for projects licensed under Apache License 2.0 is as below:

Note The full configurations can be found in the configuration section.

headerPath = "Apache-2.0.txt"

[properties]
inceptionYear = 2023
copyrightOwner = "tison <wander4096@gmail.com>"

You should change the copyright line according to your information.

To check license headers in GitHub Actions, add a step in your GitHub workflow:

- name: Check License Header
  uses: korandoru/hawkeye@v5

Cargo Install

The hawkeye executable can be installed by:

cargo install hawkeye

Docker

Alpine image (~27MB):

docker run -it --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye check

I'm somewhat rushing in this rewrite so there is still a lot of rooms to improve the experience, performance, and code style. But I'm confident that the most frequent user journey is held and works well.

Enjoy :D

v5.0.0-alpha.5

24 Mar 01:21
v5.0.0-alpha.5
007d274
Compare
Choose a tag to compare
Pre-release

Full Changelog: v4.0.5...v5.0.0-alpha.5