Commit Graph
9 Commits
Author SHA1 Message Date
Karl Seguin a4fd3cfc3f Merge pull request #4574 from JoAdo07/docs/zig-fmt-command
docs: run zig fmt on the tree, not a two-level glob
2026-11-14 09:14:50 +08:00
Karl Seguin 7c6497fb00 add make fmt
Switch to make fmt for formatting. The issue with zig fmt --check ./ is that it
ends up checking zig-pkg. Really need to give an explicit list, which is were
the make target comes in (also updated the github action so use that same target
to keep everything consistent)
2026-11-14 08:27:25 +08:00
JoAdo07 244c251644 docs: run zig fmt on the tree, not a two-level glob
The documented pre-PR check expanded to 45 of the repository's 701 .zig
files under bash: `./**/*.zig` only descends when globstar is set. CI runs
`zig fmt --check ./`, so a contributor could follow the instructions, see a
clean result, and still fail the zig-fmt job on a file the glob never
reached.

Pass the directory in both documents, and say why in AGENTS.md so the glob
does not come back.
2026-11-10 15:25:11 +01:00
Karl Seguin e066fae0b8 dev: update CONTRIBUTING.md
- Ask for large PRs to start off as an issue
- Ask for real world examples where possible
2026-11-10 18:22:04 +08:00
Karl Seguin 8caaf7ad96 dev: On linux -dev_fast is on by default
Assuming the conditions are met for -dev_fast to work (linux, debug, x86-64
without sanitizers), the -dev_fast now defaults to true.

download-v8 make target always downloads the .a (as before) and on linux x86-64
it also downloads the .so.
2026-08-14 10:43:34 +08:00
Karl Seguin af99e845df dev: support for pre-build shared library
Supports prebuild-v8 shared library and adds a `download-v8-shared` make target.
Depends on: https://github.com/lightpanda-io/zig-v8-fork/pull/198

The auto-discovery of the .so is done in the build.zig, which is different than
the auto-discovery of the .a which is done in the Makefile. This is intentional
and if we inverse -Ddev_fast so that it's on by default, the .a's auto discovery
will be moved to build.zig for consistency and explicitness. As-is, we have no
way to tell whether -Dprebuilt_v8_path=v8.a is being injected by Makefile or
is explicit (which isn't a problem so long as we're not doing dev_fast by
default).
2026-08-13 19:28:21 +08:00
Navid EMAD fc795c3b56 Document ZIGFLAGS= make download-v8 in CONTRIBUTING 2026-05-21 14:44:50 +02:00
Navid EMAD 827e696a4e link AGENTS.md and CONTRIBUTING.md, add dev section
Reciprocal pointers so humans landing in CONTRIBUTING.md discover
the agent/operational conventions in AGENTS.md, and agents landing
in AGENTS.md discover the CLA gate and pre-PR checks. Adds a short
Development section (test + fmt commands) and a Before-opening-a-PR
checklist to CONTRIBUTING.md; CLA paragraph preserved verbatim and
moved to its own section.
2026-05-11 20:41:14 +02:00
Pierre Tachoire 59e187d59a add a CONTRIBUTING file 2024-12-13 11:28:14 +01:00