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

Should fail if assets are missing. #36

Open
NodeGuy opened this issue Jun 1, 2018 · 2 comments
Open

Should fail if assets are missing. #36

NodeGuy opened this issue Jun 1, 2018 · 2 comments

Comments

@NodeGuy
Copy link

NodeGuy commented Jun 1, 2018

When an asset is missing the release is partially published. It should be all-or-nothing.

@marceloavf
Copy link
Collaborator

Could you describe the options that you used? It passes without any assets?

@NodeGuy
Copy link
Author

NodeGuy commented Jun 4, 2018

Sure:

  util.promisify(release)({
    token,
    owner: "cosmos",
    repo: "voyager",
    tag,
    name: `Cosmos Voyager Alpha ${tag} (UNSAFE)`,
    notes: `
NOTE: DO NOT ENTER YOUR FUNDRAISER SEED. THIS SOFTWARE HAS NOT BEEN AUDITED.
NEVER ENTER YOUR FUNDRAISER SEED 12 WORDS ONTO AN ONLINE COMPUTER.

Even when we do start supporting fundraiser seeds, don't use it except for
testing or with small amounts. We will release a CLI to use for offline signing
of transactions, and we will also add hardware support for this UI.

Please checkout the [CHANGELOG.md](CHANGELOG.md) for a list of changes.
`,
    draft: false,
    prerelease: true,
    skipAssetsCheck: false,
    assets: [
      path.join(__dirname, `../builds/Cosmos Voyager-darwin-x64_${tag}.tar.gz`),
      path.join(__dirname, `../builds/Cosmos Voyager-linux-x64_${tag}.tar.gz`),
      path.join(__dirname, `../builds/Cosmos Voyager-win32-x64_${tag}.zip`)
    ]
  })

It published the release even though the assets weren't where they were supposed to be and missing asset was reported.

If I were to hazard a quick guess it's because the code should be calling return after cb here:

cb(new Error('missing asset ' + err.path))

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

No branches or pull requests

2 participants