fix #18: clean up package layout — eliminate SwiftPM unhandled-file warning#68
Closed
ShadyUnderLight wants to merge 1 commit intomainfrom
Closed
fix #18: clean up package layout — eliminate SwiftPM unhandled-file warning#68ShadyUnderLight wants to merge 1 commit intomainfrom
ShadyUnderLight wants to merge 1 commit intomainfrom
Conversation
…rning - Relocate Library/Version.swift.in → Scripts/Version.swift.in (SwiftPM treats all .swift files in target source paths as compilation candidates; the .in template was causing an 'unhandled file' warning because it is not a valid Swift source and was not declared as a resource) - Update Scripts/inject_version.sh TEMPLATE path to match new location - TrackSplitterLib still declares embed_metadata.py as a resource (no change needed) - Build verified clean with zero warnings
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.
Summary
Move
Library/Version.swift.in→Scripts/Version.swift.inso SwiftPM no longer picks it up as an unhandled file inside theTrackSplitterLibsource path.Root cause
SwiftPM treats all files with recognized source extensions inside a target's source directory as compilation candidates.
Version.swift.inis a shell-expansion template (not valid Swift) and was reported as an 'unhandled file' warning.Changes
Scripts/Version.swift.in: relocated fromLibrary/Scripts/inject_version.sh: TEMPLATE path updated to new locationPackage.swift: no structural changes (existingresources:declaration forembed_metadata.pyis unchanged)Verification
swift build 2>&1produces zero warnings.Closes #18