Repository navigation
Add license compatibility checker and refactor tree structure - #2
Merged
Merged
Conversation
- Move decision tree into separate src/tree.zig file - Create src/compatibility.zig with license compatibility checking - Add compatibility mode to CLI (run with 'compat' argument) - Add comprehensive test suites for tree and compatibility - Update build.zig to support tests - Add GitHub Actions CI workflow for PR validation Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
- Fix inconsistent pointer handling in main.zig - Make license string matching case-insensitive for better UX - Update tests to verify case-insensitive behavior - Address code review feedback Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
Co-authored-by: lucasfth <94063597+lucasfth@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance tree function functionality and structure
Add license compatibility checker and refactor tree structure
Feb 8, 2026
lucasfth
marked this pull request as ready for review
February 8, 2026 12:27
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.
Implements license compatibility checking for forking/combining projects, extracts decision tree into separate module, and adds test suite with CI.
Tree Refactoring
main.zigintosrc/tree.zigNode,NodeType, anddecision_treestructuresLicense Compatibility Checker
New CLI mode for determining which licenses can be used when combining projects:
Implementation (
src/compatibility.zig):Licenseenum with 15 licenses (MIT, GPL-, BSD-, Apache-2.0, LGPL-3.0, MPL-2.0, etc.)isCompatible(existing, new)- pairwise compatibility rulesfindCompatibleLicenses(licenses[])- returns all valid optionsCompatibility rules:
Test Suite & CI
src/tree_test.zig- tree structure validation, path verificationsrc/compatibility_test.zig- compatibility logic, edge cases.github/workflows/ci.yml- runs tests + builds on Ubuntu/macOS/Windows, format checkzig build testcommand supportDocumentation
COMPATIBILITY.md- comprehensive guide with scenarios and best practicesWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ziglang.org/usr/bin/wget wget -q REDACTED(dns block)/usr/bin/curl curl -L REDACTED -o zig.tar.xz(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.