Skip to content

--prebuild-tag-prefix option cannot be empty #654

Closed

Description

@Badisi

I'm trying to rebuild a prebuild package that doesn't have a tag prefix at all.

prebuild-install (works)

Not using a tag prefix is working fine with prebuild-install

prebuild-install --tag-prefix=''

The binary will be downloaded from : https://github.com/REPO/releases/download/TAG/

electron-rebuild (fail)

Not using a tag prefix is not working with electron-rebuild

electron-rebuild --prebuild-tag-prefix=''

The url will be : https://github.com/REPO/releases/download/vTAG/ (where the prefix will still be 'v')
This is due to cli.ts#L141 and rebuild.ts#L91 where the test will fail even if the argument equals an empty string.

Activity

  1. electron-npm-package-publisher commented on Jun 28, 2026

    @electron-npm-package-publisher

    🎉 This issue has been resolved in version 4.0.6 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions