Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve config options in tests through the build system #1482

Merged
merged 7 commits into from
Oct 1, 2023

Conversation

Techatrix
Copy link
Member

previously when running tests, the zig path, zig lib path and global cache path where all resolved the same way they would be when running ZLS normally that is by looking in PATH and using known_folders.

This means that as an example the zig version that was used to run zig build may not be same as the zig version used by ZLS in its tests. Instead these config options are now resolved through the build system and supplied as an option module.

This achieved my goal of running tests in nix which wasn't possible before.

Copy link
Member

@SuperAuguste SuperAuguste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SuperAuguste SuperAuguste merged commit 08d68dc into master Oct 1, 2023
6 checks passed
@SuperAuguste SuperAuguste deleted the techatrix/nix-test branch October 1, 2023 20:07
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