Skip to content

Add loader write controls and once mode#74

Open
Poyraxx wants to merge 1 commit into
lewisclark:masterfrom
Poyraxx:poyrax/loader-write-controls
Open

Add loader write controls and once mode#74
Poyraxx wants to merge 1 commit into
lewisclark:masterfrom
Poyraxx:poyrax/loader-write-controls

Conversation

@Poyraxx

@Poyraxx Poyraxx commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • add a write_mode = "once" option so existing dumps are preserved without appending or truncating
  • let gluasteal.lua return a second boolean to control whether the current file should be written to disk
  • add gluasteal.getenv and loader-local os.getenv(...) compatibility for standalone Lua loader scripts
  • document the new loader behavior and add a small parsing test for the new write mode

Why

Issue #49 is still open in the current code because only truncate and append exist, and the loader cannot suppress writes per file. A later report in issue #73 also showed that os.getenv is missing inside the loader environment.

Validation

  • configured with Visual Studio Build Tools CMake + Ninja
  • built successfully on Windows x64
  • ctest --test-dir build --output-on-failure

@Poyraxx
Poyraxx marked this pull request as ready for review June 3, 2026 05:44
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.

1 participant