Skip to content

builder: accept source paths in size tests without trimpath - #5915

Open
davecheney wants to merge 1 commit into
tinygo-org:devfrom
davecheney:davecheney-builder-size-path-tests
Open

davecheney wants to merge 1 commit into
tinygo-org:devfrom
davecheney:davecheney-builder-size-path-tests

Conversation

@davecheney

Copy link
Copy Markdown
Contributor

Allow absolute C source directories in TINYGOROOT only when trimpath is disabled. Use filepath.Rel to reject paths outside the root and check absolute paths before the package regex.

Linux passed by chance because /home/runner/work/tinygo/tinygo/lib/nrfx/mdk matches ^[a-z/]+$. Add focused cases for both trimpath values, native and lowercase paths, uppercase letters, spaces, and sibling-prefix boundaries.

Allow absolute C source directories in TINYGOROOT only when trimpath is disabled. Use filepath.Rel to reject paths outside the root and check absolute paths before the package regex.

Linux passed by chance because /home/runner/work/tinygo/tinygo/lib/nrfx/mdk matches ^[a-z/]+$. Add focused cases for both trimpath values, native and lowercase paths, uppercase letters, spaces, and sibling-prefix boundaries.
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