Repository navigation
Release v0.0.19 - #17
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
33 issues found across 165 files
Confidence score: 3/5
devicons/analyzecan truncatemappingif it encounters a duplicate name. Validate the full mapping before writing it.- Several generation steps fail in a clean checkout:
octicons/generate,codicons/generate_i_cod.py, andfont-awesome/analyzeuse paths that resolve incorrectly, andfont-awesome/generatewrites to a missinglibdirectory. Fix the paths and ensure the output directory exists. - The checked-in notices need an attribution and licensing pass:
pomicons/LICENSEnames a different copyright holder than the font,weather-icons/OFL.txtstill has template placeholders, andfont-awesome/LICENSE.txtomits the 2026 notice. font-awesome/mappingmapssnapchat_ghostto the GitKraken logo, so that glyph renders the wrong icon. Remove the alias.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="nerd/glyphs/devicons/vorillaz/README.md">
<violation number="1" location="nerd/glyphs/devicons/vorillaz/README.md:5">
P3: “Substitudes” is a misspelling; change it to “substitutes.”</violation>
<violation number="2" location="nerd/glyphs/devicons/vorillaz/README.md:7">
P3: This sentence has a typo that obscures its meaning. Replace “for” with “fork” and clarify the phrasing.</violation>
</file>
<file name="nerd/glyphs/devicons/README.md">
<violation number="1" location="nerd/glyphs/devicons/README.md:3">
P3: `analyze` explicitly selects several `*-line.svg` assets, so this description incorrectly implies linemark variants are excluded. Describe the variant selection as per-icon.</violation>
</file>
<file name="nerd/glyphs/powerline-extra/README.md">
<violation number="1" location="nerd/glyphs/powerline-extra/README.md:10">
P3: U+2630 is named “Trigram for Heaven,” not “Trigraph Heaven”; use the standard name so readers can identify the glyph accurately.</violation>
</file>
<file name="nerd/glyphs/README.md">
<violation number="1" location="nerd/glyphs/README.md:5">
P2: This points to the wrong path: `font-patcher` loads glyph-set mappings from `bin/scripts/lib`, not `bin/script/libs`. Update the instruction to name that directory so contributors update the mappings the patcher actually uses.</violation>
<violation number="2" location="nerd/glyphs/README.md:10">
P3: `src/svgs` is not present in this checkout, so this note points maintainers to no source for regenerating `original-source.otf`. Link to the actual upstream source or clarify that it is not checked in here.</violation>
</file>
<file name="README.md">
<violation number="1" location="README.md:83">
P3: A later push cancels an in-progress release run, so not every push produces a release. Say that each successful, non-canceled run publishes a numbered release.</violation>
</file>
<file name="nerd/glyphs/font-awesome/LICENSE.txt">
<violation number="1" location="nerd/glyphs/font-awesome/LICENSE.txt:26">
P2: The generated OTF includes the 7.3.1 `fa-volume` glyph, but its source's 2026 copyright notice is stripped when `generate` imports the outline, leaving this OFL notice with only 2022. Extend this notice through 2026 so redistributions preserve the added glyph's copyright attribution.</violation>
</file>
<file name="nerd/glyphs/materialdesign/README.md">
<violation number="1" location="nerd/glyphs/materialdesign/README.md:13">
P2: This recipe cannot be run from this checkout: its script and `lib` directory are absent, and the font argument points to a nonexistent `src/glyphs` path. Rewrite the example for the checked-in layout, or state that it requires a complete upstream Nerd Fonts checkout.</violation>
</file>
<file name="nerd/glyphs/devicons/analyze">
<violation number="1" location="nerd/glyphs/devicons/analyze:107">
P2: `analyze` drops the existing `awk` mapping because its `fixed/awk-plain.svg` asset is outside `icons` during the documented analyze step. Preserve an existing local `fixed` path when checking the mapping file.</violation>
<violation number="2" location="nerd/glyphs/devicons/analyze:137">
P2: A duplicate name aborts after this opens `mapping` with `'w'` and writes earlier rows, leaving the source mapping truncated. Validate uniqueness before opening the file, or replace it only after writing a validated temporary file.</violation>
</file>
<file name="nerd/glyphs/octicons/generate">
<violation number="1" location="nerd/glyphs/octicons/generate:12">
P3: The generated Octicons font and `i_oct.sh` header will identify this release as 3.4.0, despite the PR releasing Nerd Fonts 3.5.1. Set this to the release version.</violation>
<violation number="2" location="nerd/glyphs/octicons/generate:20">
P2: This path resolves outside `nerd/`, while `font-patcher` loads `i_oct.sh` from `nerd/bin/scripts/lib`; generation therefore fails or leaves the helper unavailable to glyph-count checks. Point it at `../../bin/scripts/lib` and create that directory before writing.</violation>
</file>
<file name="nerd/glyphs/codicons/LICENSE.txt">
<violation number="1" location="nerd/glyphs/codicons/LICENSE.txt:51">
P3: The CC preamble renders this phrase as `More_considerations`; replace the underscore with a space so the heading reads correctly.</violation>
</file>
<file name="nerd/glyphs/weather-icons/OFL.txt">
<violation number="1" location="nerd/glyphs/weather-icons/OFL.txt:1">
P2: This OFL file still contains its template copyright and Reserved Font Name placeholders, so it does not identify Weather Icons’ actual rights holders or licensing names. Replace the header placeholders with the upstream font’s actual copyright and RFN declarations before distributing it.</violation>
</file>
<file name="nerd/glyphs/pomicons/LICENSE">
<violation number="1" location="nerd/glyphs/pomicons/LICENSE:1">
P1: `Pomicons.otf` identifies Davide Bignotti as its 2013/2014 copyright holder, not Gabriele Lana; verify this OFL applies to the checked-in font and preserve its actual attribution.</violation>
</file>
<file name="nerd/glyphs/codicons/generate_i_cod.py">
<violation number="1" location="nerd/glyphs/codicons/generate_i_cod.py:17">
P2: Running this generator writes `Nerd Fonts Version: 3.5.0` into the generated glyph script, although this refresh uses 3.5.1. Update the version so generated metadata matches the release.</violation>
<violation number="2" location="nerd/glyphs/codicons/generate_i_cod.py:23">
P2: This path escapes `nerd/`, so the generator looks for `i_cod.sh` under repository-root `bin` and fails before generating the file. Use the sibling upstream tree under `nerd/bin` instead.</violation>
</file>
<file name="nerd/download_glyphs.sh">
<violation number="1" location="nerd/download_glyphs.sh:21">
P2: These recursive copies retain files omitted by the selected release, so reruns can mix old glyph and helper assets into the build. Replace both vendor trees before copying.</violation>
</file>
<file name="src/check_opentype_features.py">
<violation number="1" location="src/check_opentype_features.py:90">
P3: `buildPlans.afio = 1` is valid TOML but makes `plan` an integer, so this `.get()` raises an uncaught `AttributeError`; reject non-table plans to report invalid configuration cleanly.</violation>
</file>
<file name="nerd/glyphs/font-awesome/generate">
<violation number="1" location="nerd/glyphs/font-awesome/generate:12">
P2: This generator stamps the font and glyph-info header as Nerd Fonts 3.5.0, although this release is 3.5.1. Update the value so regenerated artifacts carry the current version.</violation>
<violation number="2" location="nerd/glyphs/font-awesome/generate:21">
P2: The `lib` output directory is absent in a clean checkout, so the final glyph-info write fails with `FileNotFoundError`. Create the directory before writing or target an existing directory.</violation>
</file>
<file name="nerd/glyphs/font-awesome/mapping">
<violation number="1" location="nerd/glyphs/font-awesome/mapping:1082">
P2: This alias makes `i_fa_bitbucket_square` render a code-commit symbol. Remove `bitbucket_square` from this row.</violation>
<violation number="2" location="nerd/glyphs/font-awesome/mapping:1272">
P2: This alias makes `i_fa_facebook_official` render the Earlybirds logo. Remove `facebook_official` from this row.</violation>
<violation number="3" location="nerd/glyphs/font-awesome/mapping:1322">
P2: This alias makes `i_fa_tripadvisor` render the First Draft logo. Remove `tripadvisor` from this row.</violation>
<violation number="4" location="nerd/glyphs/font-awesome/mapping:1396">
P2: This alias makes `i_fa_snapchat_ghost` render the GitKraken logo. Remove `snapchat_ghost` from this row.</violation>
</file>
<file name="nerd/glyphs/font-awesome/remix">
<violation number="1" location="nerd/glyphs/font-awesome/remix:86">
P3: `heard_o` publishes a misspelled primary name for the heart icon, while `heart_o` survives only as an alias. Rename this entry to `heart_o` to avoid exporting the erroneous `i_fa_heard_o` symbol.</violation>
<violation number="2" location="nerd/glyphs/font-awesome/remix:223">
P3: No E-range point can reach this increment, so `count4` and the printed E0 total always remain zero. Remove the unreachable counter and its summary entry, or revise the placement policy if E-range glyphs should be included.</violation>
</file>
<file name="nerd/glyphs/devicons/generate">
<violation number="1" location="nerd/glyphs/devicons/generate:15">
P3: This release is Nerd Fonts 3.5.1, but regeneration stamps `devicons.otf` and `i_dev.sh` as 3.5.0. Set this to 3.5.1 so regenerated artifacts report the correct release.</violation>
<violation number="2" location="nerd/glyphs/devicons/generate:24">
P2: This resolves to repository-root `bin/scripts/lib`, which does not exist in this checkout, so the final `createGlyphInfo` call raises `FileNotFoundError`. Point the output at the intended existing glyph-set directory and ensure it exists.</violation>
</file>
<file name="nerd/glyphs/font-awesome/analyze">
<violation number="1" location="nerd/glyphs/font-awesome/analyze:35">
P2: `./analyze` aborts with `Error fetching old names`: this path resolves to the repository root, but the file is `nerd/glyphnames.json`. Use `../../glyphnames.json`.</violation>
<violation number="2" location="nerd/glyphs/font-awesome/analyze:82">
P2: `list(set(...))` gives aliases hash-dependent order, so rerunning the analyzer can churn `mapping` and generated `i_fa.sh`; sort the collected names before output.</violation>
</file>
<file name="nerd/font-patcher">
<violation number="1" location="nerd/font-patcher:344">
P2: `check_glyph_counts` looks for `bin/scripts/lib/i_*.sh`, but this tree packages no `scripts/lib` directory. Consequently, `--experimental check-glyph-count` exits on the always-enabled Seti patch; ship the count scripts or remove the option until they are available.</violation>
</file>
Architecture diagram
sequenceDiagram
participant Dev as Developer/Fork
participant GH as GitHub Actions
participant DK as Docker Builder
participant BC as Verda Cache
participant IO as Iosevka Build
participant NF as Nerd Font Patcher
participant OT as OpenType Checker
participant SC as Showcase Renderer
participant RL as GitHub Release
Note over Dev,RL: Font Build and Release Pipeline v0.0.19
Dev->>GH: Push to main (fork or PR)
GH->>GH: Check event source
alt Fork repository, main branch
GH->>DK: Build local image (afio-builder:local)
DK->>BC: Restore verda cache (build+dist)
GH->>IO: Run bun build -- ttf::afio
IO->>BC: Populate build & dist caches
IO-->>GH: TTF output
GH->>NF: Run nerd-patcher.py (PATCH_JOBS)
NF->>NF: Patch glyphs (Iosevka + Nerd Fonts 3.5.1)
NF-->>GH: Patched TTFs
GH->>RL: Create release build-{run}.{attempt}
RL-->>Dev: afio-latest.zip
else PR from same repo
GH->>DK: Build image (load, no push)
GH->>IO: Build font
IO->>NF: Patch TTFs
GH->>OT: Check OpenType features (noCvSs)
OT->>OT: Validate cv42/ss05 absent or present
OT-->>GH: Pass/Fail
GH->>SC: Generate showcase PNGs
SC->>SC: Render with Debug container
SC-->>GH: Reference comparison
GH->>RL: Publish prerelease (v-rc)
else PR from fork
GH->>DK: Build image (load)
GH->>IO: Build font (no registry push)
IO->>NF: Patch TTFs
GH->>OT: Verify features
GH->>SC: Visual check (no publish)
end
Note over IO,NF: Compact OpenType (noCvSs=true) now default
IO->>IO: Omit cv/ss feature tables (~3x smaller TTF)
OT->>OT: Enforce no cv/ss if noCvSs true, else require cv42, ss05
Note over GH,SC: Reproducible Showcase
SC->>SC: Use pinned showcase image (Dockerfile.showcase)
SC->>SC: Pixel-identical PNGs with/without compact output
Note over Dev,RL: Build Caching
BC->>BC: Split cache dirs (.build, .dist)
BC->>BC: Seed .build from .build-seed on first run
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| @@ -0,0 +1,94 @@ | |||
| Copyright (c) 2021, Gabriele Lana gabriele.lana@gmail.com | |||
There was a problem hiding this comment.
P1: Pomicons.otf identifies Davide Bignotti as its 2013/2014 copyright holder, not Gabriele Lana; verify this OFL applies to the checked-in font and preserve its actual attribution.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/pomicons/LICENSE, line 1:
<comment>`Pomicons.otf` identifies Davide Bignotti as its 2013/2014 copyright holder, not Gabriele Lana; verify this OFL applies to the checked-in font and preserve its actual attribution.</comment>
<file context>
@@ -0,0 +1,94 @@
+Copyright (c) 2021, Gabriele Lana gabriele.lana@gmail.com
+with Reserved Font Name Pomicons.
+
</file context>
|
|
||
| This directory contains all the glyphs (glyph sets) that the `font-patcher` puts into the fonts. | ||
|
|
||
| If a icon font here is updated, do not forget to update the database file in `bin/script/libs`. |
There was a problem hiding this comment.
P2: This points to the wrong path: font-patcher loads glyph-set mappings from bin/scripts/lib, not bin/script/libs. Update the instruction to name that directory so contributors update the mappings the patcher actually uses.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/README.md, line 5:
<comment>This points to the wrong path: `font-patcher` loads glyph-set mappings from `bin/scripts/lib`, not `bin/script/libs`. Update the instruction to name that directory so contributors update the mappings the patcher actually uses.</comment>
<file context>
@@ -0,0 +1,30 @@
+
+This directory contains all the glyphs (glyph sets) that the `font-patcher` puts into the fonts.
+
+If a icon font here is updated, do not forget to update the database file in `bin/script/libs`.
+
+Also do not forget to update the table below, because it is reused for the individual fonts' READMEs
</file context>
| If a icon font here is updated, do not forget to update the database file in `bin/script/libs`. | |
| If an icon font here is updated, do not forget to update the mapping scripts in `bin/scripts/lib`. |
| In the Font Awesome Free download, the SIL OFL license applies to all icons | ||
| packaged as web and desktop font files. | ||
|
|
||
| Copyright (c) 2022 Fonticons, Inc. (https://fontawesome.com) |
There was a problem hiding this comment.
P2: The generated OTF includes the 7.3.1 fa-volume glyph, but its source's 2026 copyright notice is stripped when generate imports the outline, leaving this OFL notice with only 2022. Extend this notice through 2026 so redistributions preserve the added glyph's copyright attribution.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/font-awesome/LICENSE.txt, line 26:
<comment>The generated OTF includes the 7.3.1 `fa-volume` glyph, but its source's 2026 copyright notice is stripped when `generate` imports the outline, leaving this OFL notice with only 2022. Extend this notice through 2026 so redistributions preserve the added glyph's copyright attribution.</comment>
<file context>
@@ -0,0 +1,165 @@
+In the Font Awesome Free download, the SIL OFL license applies to all icons
+packaged as web and desktop font files.
+
+Copyright (c) 2022 Fonticons, Inc. (https://fontawesome.com)
+with Reserved Font Name: "Font Awesome".
+
</file context>
| ``` | ||
| cd bin/scripts | ||
| mv lib/i_md.sh lib/i_md.sh_ | ||
| python3 generate-glyph-info-from-set.py --start f0001 -end f1af0 -font ../../src/glyphs/materialdesign/MaterialDesignIconsDesktop.ttf -offset 0 -prefix md > lib/i_md.sh |
There was a problem hiding this comment.
P2: This recipe cannot be run from this checkout: its script and lib directory are absent, and the font argument points to a nonexistent src/glyphs path. Rewrite the example for the checked-in layout, or state that it requires a complete upstream Nerd Fonts checkout.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/materialdesign/README.md, line 13:
<comment>This recipe cannot be run from this checkout: its script and `lib` directory are absent, and the font argument points to a nonexistent `src/glyphs` path. Rewrite the example for the checked-in layout, or state that it requires a complete upstream Nerd Fonts checkout.</comment>
<file context>
@@ -0,0 +1,31 @@
+```
+cd bin/scripts
+mv lib/i_md.sh lib/i_md.sh_
+python3 generate-glyph-info-from-set.py --start f0001 -end f1af0 -font ../../src/glyphs/materialdesign/MaterialDesignIconsDesktop.ttf -offset 0 -prefix md > lib/i_md.sh
+```
+
</file context>
| notes2 = '' | ||
| mapping = [] | ||
| for orig_point, dest_point, filename, *names in remix_mapping: | ||
| if not os.path.isfile(os.path.join(vectorsdir, filename)): |
There was a problem hiding this comment.
P2: analyze drops the existing awk mapping because its fixed/awk-plain.svg asset is outside icons during the documented analyze step. Preserve an existing local fixed path when checking the mapping file.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/devicons/analyze, line 107:
<comment>`analyze` drops the existing `awk` mapping because its `fixed/awk-plain.svg` asset is outside `icons` during the documented analyze step. Preserve an existing local `fixed` path when checking the mapping file.</comment>
<file context>
@@ -0,0 +1,160 @@
+notes2 = ''
+mapping = []
+for orig_point, dest_point, filename, *names in remix_mapping:
+ if not os.path.isfile(os.path.join(vectorsdir, filename)):
+ newfilename = suggest_new_filename(names[0])
+ if newfilename:
</file context>
| print('{}{:04X} {:04X} {}/{}.svg {}'.format('' if destpoint != 0 else '# ', point, destpoint, subset, source[point].glyphname, glyphname)) | ||
| if destpoint != 0: | ||
| if point < 0xF000: | ||
| count4 += 1 |
There was a problem hiding this comment.
P3: No E-range point can reach this increment, so count4 and the printed E0 total always remain zero. Remove the unreachable counter and its summary entry, or revise the placement policy if E-range glyphs should be included.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/font-awesome/remix, line 223:
<comment>No E-range point can reach this increment, so `count4` and the printed E0 total always remain zero. Remove the unreachable counter and its summary entry, or revise the placement policy if E-range glyphs should be included.</comment>
<file context>
@@ -0,0 +1,237 @@
+ print('{}{:04X} {:04X} {}/{}.svg {}'.format('' if destpoint != 0 else '# ', point, destpoint, subset, source[point].glyphname, glyphname))
+ if destpoint != 0:
+ if point < 0xF000:
+ count4 += 1
+ elif point < 0xF300:
+ count2 += 1
</file context>
| 0xF045: 'share_square_o', | ||
| 0xF087: 'thumbs_o_up', | ||
| 0xF088: 'thumbs_o_down', | ||
| 0xF08A: 'heard_o', |
There was a problem hiding this comment.
P3: heard_o publishes a misspelled primary name for the heart icon, while heart_o survives only as an alias. Rename this entry to heart_o to avoid exporting the erroneous i_fa_heard_o symbol.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/font-awesome/remix, line 86:
<comment>`heard_o` publishes a misspelled primary name for the heart icon, while `heart_o` survives only as an alias. Rename this entry to `heart_o` to avoid exporting the erroneous `i_fa_heard_o` symbol.</comment>
<file context>
@@ -0,0 +1,237 @@
+ 0xF045: 'share_square_o',
+ 0xF087: 'thumbs_o_up',
+ 0xF088: 'thumbs_o_down',
+ 0xF08A: 'heard_o',
+ 0xF08C: 'linkedin_square',
+ 0xF096: 'square_o',
</file context>
| 0xF08A: 'heard_o', | |
| 0xF08A: 'heart_o', |
|
|
||
| # Double-quotes required here, for version-bump.sh: | ||
| # version-bump.sh is not working here, need to adjust manually! | ||
| version = "3.5.0" |
There was a problem hiding this comment.
P3: This release is Nerd Fonts 3.5.1, but regeneration stamps devicons.otf and i_dev.sh as 3.5.0. Set this to 3.5.1 so regenerated artifacts report the correct release.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/devicons/generate, line 15:
<comment>This release is Nerd Fonts 3.5.1, but regeneration stamps `devicons.otf` and `i_dev.sh` as 3.5.0. Set this to 3.5.1 so regenerated artifacts report the correct release.</comment>
<file context>
@@ -0,0 +1,140 @@
+
+# Double-quotes required here, for version-bump.sh:
+# version-bump.sh is not working here, need to adjust manually!
+version = "3.5.0"
+
+dev_version = 'v2.17.0'
</file context>
| version = "3.5.0" | |
| version = "3.5.1" |
| Also do not forget to update the table below, because it is reused for the individual fonts' READMEs | ||
| (ripped out of here). | ||
|
|
||
| The 'Seti and Original' icons (in `original-source.otf`) is automatically generated from the glyphs in `src/svgs`. |
There was a problem hiding this comment.
P3: src/svgs is not present in this checkout, so this note points maintainers to no source for regenerating original-source.otf. Link to the actual upstream source or clarify that it is not checked in here.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At nerd/glyphs/README.md, line 10:
<comment>`src/svgs` is not present in this checkout, so this note points maintainers to no source for regenerating `original-source.otf`. Link to the actual upstream source or clarify that it is not checked in here.</comment>
<file context>
@@ -0,0 +1,30 @@
+Also do not forget to update the table below, because it is reused for the individual fonts' READMEs
+(ripped out of here).
+
+The 'Seti and Original' icons (in `original-source.otf`) is automatically generated from the glyphs in `src/svgs`.
+Do not edit and commit changes to that font directly.
+
</file context>
Use native amd64 font output: the bold V retains one near-collinear outline point, producing 25 tiny edge pixel differences per theme. Rendering the CI fonts locally reproduces all CI images exactly.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Preserve the required build-image check after the combined image and font build succeeds.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
2 issues found across 3 files (changes from recent commits).
Confidence score: 3/5
- In
.github/workflows/pr.yaml, ifbuild-imageis a required check, it can be skipped afterbuild-fontfails and still satisfy branch protection. Run it withalways()and fail unlessbuild-fontsucceeded. - In
build.sh, cache-enabled builds fail whenBUILD_PLANis a relative path starting with-, because both checksum commands parse it as an option. Pass--before the filename in both branches.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="build.sh">
<violation number="1" location="build.sh:40">
P3: Cache-enabled builds fail when `BUILD_PLAN` is a relative path beginning with `-`: both checksum commands parse it as an option. Pass `--` before the filename in both branches.</violation>
</file>
<file name=".github/workflows/pr.yaml">
<violation number="1" location=".github/workflows/pr.yaml:112">
P1: If `build-image` is the required branch-protection check, it is skipped when `build-font` fails, and skipped checks count as success. Make this job run with `always()` and explicitly fail unless `needs.build-font.result` is `success`.</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Turn on auto-fix | Re-trigger cubic
| needs: build-font | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "Image and font build succeeded" | ||
|
|
There was a problem hiding this comment.
P1: If build-image is the required branch-protection check, it is skipped when build-font fails, and skipped checks count as success. Make this job run with always() and explicitly fail unless needs.build-font.result is success.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/workflows/pr.yaml, line 112:
<comment>If `build-image` is the required branch-protection check, it is skipped when `build-font` fails, and skipped checks count as success. Make this job run with `always()` and explicitly fail unless `needs.build-font.result` is `success`.</comment>
<file context>
@@ -107,6 +107,13 @@ jobs:
+ # Keep the required image check: build-font builds and pushes the image too.
+ build-image:
+ needs: build-font
+ runs-on: ubuntu-latest
+ steps:
</file context>
| needs: build-font | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "Image and font build succeeded" | |
| needs: build-font | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| if [ "${{ needs.build-font.result }}" != "success" ]; then | |
| exit 1 | |
| fi | |
| echo "Image and font build succeeded" |
| if command -v sha256sum >/dev/null 2>&1; then | ||
| PLAN_HASH=$(sha256sum "$BUILD_PLAN") | ||
| else | ||
| PLAN_HASH=$(shasum -a 256 "$BUILD_PLAN") | ||
| fi |
There was a problem hiding this comment.
P3: Cache-enabled builds fail when BUILD_PLAN is a relative path beginning with -: both checksum commands parse it as an option. Pass -- before the filename in both branches.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At build.sh, line 40:
<comment>Cache-enabled builds fail when `BUILD_PLAN` is a relative path beginning with `-`: both checksum commands parse it as an option. Pass `--` before the filename in both branches.</comment>
<file context>
@@ -37,12 +37,21 @@ echo "Building font '$FONT_NAME' using plan '$BUILD_PLAN' ..."
CACHE_MOUNT=()
if [ -n "$VERDA_CACHE" ]; then
- mkdir -p "$VERDA_CACHE/build" "$VERDA_CACHE/dist"
+ if command -v sha256sum >/dev/null 2>&1; then
+ PLAN_HASH=$(sha256sum "$BUILD_PLAN")
+ else
</file context>
| if command -v sha256sum >/dev/null 2>&1; then | |
| PLAN_HASH=$(sha256sum "$BUILD_PLAN") | |
| else | |
| PLAN_HASH=$(shasum -a 256 "$BUILD_PLAN") | |
| fi | |
| if command -v sha256sum >/dev/null 2>&1; then | |
| PLAN_HASH=$(sha256sum -- "$BUILD_PLAN") | |
| else | |
| PLAN_HASH=$(shasum -a 256 -- "$BUILD_PLAN") | |
| fi |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Update the font to Iosevka 34.9.0 and Nerd Fonts 3.5.1, built with Bun 1.4.2.
noCvSs = true), producing TTF files roughly three times smaller while preserving the configured glyph appearance.Validation: ten wrapper tests and workflow lint pass. Full local font builds with compact output enabled and disabled produce pixel-identical showcase PNGs.