Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script fails to find manual changelog durring upload step #167

Open
juemrami opened this issue Jun 5, 2024 · 0 comments
Open

Script fails to find manual changelog durring upload step #167

juemrami opened this issue Jun 5, 2024 · 0 comments

Comments

@juemrami
Copy link

juemrami commented Jun 5, 2024

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
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

No branches or pull requests

1 participant