Skip to content

Script fails to find manual changelog durring upload step #167

@juemrami

Description

@juemrami

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions