I think the issue is sourcing from this conditional here to "use the processed copy" of the changelog file.
Since the file at path "$pkgdir/$changelog" exists in my project, the script assigns this path to changelog_path
"LFG-Bulletin-Board/.release/LFGBulletinBoard/LFGBulletinBoard/changelog.txt"
My .pkgmeta lets the script to move /LFGBulletinBoard/LFGBulletinBoard to /LFGBulletinBoard
- changelog is now at
"LFG-Bulletin-Board/.release/LFGBulletinBoard/changelog.txt"
The script then goes to the upload stage and uses the now invalid changelog_path
.pkgmeta
package-as: LFGBulletinBoard
move-folders:
LFGBulletinBoard/LFGBulletinBoard: LFGBulletinBoard
manual-changelog: LFGBulletinBoard/changelog.txt
Error Message
./.release/release.sh: line 2779:
/user/GitHub/LFG-Bulletin-Board/.release/LFGBulletinBoard/LFGBulletinBoard/changelog.txt: No such file or directory
Uploading LFGBulletinBoard-v3.3beta.zip (4.4.0,1.15.2 beta)
Error! (400)
{
"errorCode":1002,
"errorMessage": "Error in field `metadata`:\n* Invalid type. Undefined. Path \u0027changelog\u0027, line 5, position 15."
}
Work Around
Ignore the LFGBulletinBoard/changelog.txt filepath in my .pkgmeta so that its not packaged.
- causes
changelog_path to point to my local "../GitHub/LFG-Bulletin-Board/LFGBulletinBoard/changelog.txt" copy instead
I think the issue is sourcing from this conditional here to "use the processed copy" of the changelog file.
Since the file at path
"$pkgdir/$changelog"exists in my project, the script assigns this path tochangelog_path"LFG-Bulletin-Board/.release/LFGBulletinBoard/LFGBulletinBoard/changelog.txt"My
.pkgmetalets the script to move/LFGBulletinBoard/LFGBulletinBoardto/LFGBulletinBoard"LFG-Bulletin-Board/.release/LFGBulletinBoard/changelog.txt"The script then goes to the upload stage and uses the now invalid
changelog_path.pkgmeta
Error Message
Work Around
Ignore the
LFGBulletinBoard/changelog.txtfilepath in my .pkgmetaso that its not packaged.changelog_pathto point to my local"../GitHub/LFG-Bulletin-Board/LFGBulletinBoard/changelog.txt"copy instead