Draft
Add --vmargs-path option to support custom vm.args file paths#131
Conversation
Copilot
AI
changed the title
[WIP] Add erlinit.conf option to support vm.args path
Add --vmargs-path option to support custom vm.args file paths
Oct 8, 2025
Co-authored-by: fhunleth <64669+fhunleth@users.noreply.github.com>
fhunleth
force-pushed
the
copilot/add-erlinit-conf-option-vm-args
branch
from
October 9, 2025 13:43
0eae10e to
f3d7f6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new
--vmargs-pathoption to erlinit that allows users to specify a custom path to the vm.args file. This complements the existing--bootoption and provides flexibility for deployments that need to use vm.args files in non-standard locations.Changes
--vmargs-pathcommand-line option that accepts a path to a vm.args file/data/vm.args) and relative paths (e.g.,custom.vm.argsrelative to the release version directory)vm.argslocation in the release version directoryImplementation
The implementation follows the same pattern as the existing
--bootoption for consistency:Example Usage
In erlinit.config:
Or on the command line:
Testing
Added three comprehensive test cases:
068_vmargs_path: Verifies a valid custom vm.args path (relative) works correctly069_vmargs_path_missing: Verifies fallback behavior when specified file doesn't exist070_vmargs_path_absolute: Verifies absolute path supportAll 70 tests pass successfully.
Fixes #[issue_number]
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.