Skip to content

Commit ee54cb0

Browse files
Add default year for hawkeye formatting
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1 parent 3838be5 commit ee54cb0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ let package = Package(
310310
.define("CZ_VERSION", to: "\"\(scVersion)\""),
311311
.define("GIT_COMMIT", to: "\"\(gitCommit)\""),
312312
.define("RELEASE_VERSION", to: "\"\(releaseVersion)\""),
313-
.define("BUILDER_SHIM_VERSION", to: "\"\(builderShimVersion)\"")
313+
.define("BUILDER_SHIM_VERSION", to: "\"\(builderShimVersion)\""),
314314
]
315315
),
316316
]

scripts/install-hawkeye.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ if command -v .local/bin/hawkeye >/dev/null 2>&1; then
1717
echo "hawkeye already installed"
1818
else
1919
echo "Installing hawkeye"
20-
export VERSION=v6.0.4
20+
export VERSION=v6.1.0
2121
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/${VERSION}/hawkeye-installer.sh | CARGO_HOME=.local sh -s -- --no-modify-path
2222
fi

scripts/license-header.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright ©{{ " " }}{%- if attrs.git_file_modified_year != attrs.git_file_created_year -%}{{ attrs.git_file_created_year }}-{{ attrs.git_file_modified_year }}{%- else -%}{{ attrs.git_file_created_year }}{%- endif -%}{{ " " }}{{ props["copyrightOwner"] }}. All rights reserved.
1+
Copyright ©{{ " " }}{%- set created = attrs.git_file_created_year or attrs.disk_file_created_year -%}{%- set modified = attrs.git_file_modified_year or created -%}{%- if created != modified -%} {{created}}-{{modified}}{%- else -%}{{created}}{%- endif -%}{{ " " }}{{ props["copyrightOwner"] }}. All rights reserved.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)