Repository navigation
Add CI check for the Windows path length limit - #14
Merged
Merged
Conversation
The product installs the gallery below C:\ProgramData\inray\OPC Router 5\config\solution-gallery\<source id>\, so up to 83 characters precede every path of this repository. A path over 176 characters cannot be written on Windows and breaks the setup. The check fails for paths over 170 characters; it runs on pull requests, on pushes to main and before the release zip is created. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inrayTW1
requested changes
Sep 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inrayTW1
approved these changes
Sep 29, 2026
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.
Copilot
OPC Router installs the Solution Gallery below
C:\ProgramData\inray\OPC Router 5\config\solution-gallery\<source id>\, so up to 83 characters precede every path of this repository (the source id is 24 characters in current releases and 8 characters after tp#354132). Windows limits a full path to 259 characters, so a path in this repository must stay at or below 176 characters, otherwise the setup cannot write the file.Change
.github/scripts/check-path-length.shfails with an annotated error for every file path longer than 170 characters (counted from the repository root,.git,.githubandimgexcluded, as in the release zip). The limit can be overridden withMAX_SOLUTION_PATH_LENGTH.Check path lengthruns it on pull requests, pushes tomainand on demand.Create releaseruns the same check before buildingsolutions.zip, so an over-long path cannot be released.CONTRIBUTING.mddocuments the limit.Current state
The longest path today is 165 characters (
OPC UA high throughput streaming to InfluxDB/config/versioned/ConnectionGroups/Connections/Multi Datachange Trigger to InfluxDB/${mdc_to_influx_connection_name}.yaml), so the check passes. Verified locally: passes at the default limit, fails on that file with a limit of 160.🤖 Generated with Claude Code