Skip to content

fix(tools): improve dlint binary discovery for cross-architecture support#33129

Open
lu-zero wants to merge 1 commit intodenoland:mainfrom
lu-zero:dlint-on-non-x86-linux
Open

fix(tools): improve dlint binary discovery for cross-architecture support#33129
lu-zero wants to merge 1 commit intodenoland:mainfrom
lu-zero:dlint-on-non-x86-linux

Conversation

@lu-zero
Copy link
Copy Markdown
Contributor

@lu-zero lu-zero commented Apr 1, 2026

  • Add architecture-aware target triple detection (x86_64 vs aarch64)
  • Check for local dlint in PATH with matching version before downloading
  • Download dlint from GitHub releases with correct arch-specific binary
  • Add fallback to build dlint from denoland/deno_lint source when no prebuilt is available for the current architecture
  • Propagate build failures as errors

Made with glm-5 and opencode.

…port

- Add architecture-aware target triple detection (x86_64 vs aarch64)
- Check for local dlint in PATH with matching version before downloading
- Download dlint from GitHub releases with correct arch-specific binary
- Add fallback to build dlint from denoland/deno_lint source when no
  prebuilt is available for the current architecture
- Propagate build failures as errors

Co-Authored-By: opencode <https://github.com/anomalyco/opencode>
Co-Authored-By: zai-org/GLM-5-FP8 <https://modal.com/zai-org/GLM-5-FP8>
@lu-zero lu-zero force-pushed the dlint-on-non-x86-linux branch from 1dd2484 to 2f363c9 Compare April 2, 2026 06:35
@bartlomieju
Copy link
Copy Markdown
Member

Can you describe the purpose of this PR? All tools needed to build and test Deno locally are already vendored and I'm not keen on adding fallbacks and multiple paths that only increase maintenance burden.

@lu-zero
Copy link
Copy Markdown
Contributor Author

lu-zero commented Apr 2, 2026

the tools do not work on linux aarch64.

@lu-zero
Copy link
Copy Markdown
Contributor Author

lu-zero commented Apr 2, 2026

denoland/deno_lint#1482 is my alternative solution, but I'd keep the fallback at least to the tools in path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants