oclif: oclif promote shows NoSuchKey: The specified key does not exist.
I am not sure if this is a bug. However, based on the docs here, I should be able to push to S3 by using the command oclif promote.
However, after some fiddling around and trying to understand what is going wrong due to lack of documentation, I encounter this issue:
NoSuchKey: The specified key does not exist.
Code: NoSuchKey
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (8 by maintainers)
@tuler @oap75 this was fixed a few weeks ago, make sure to update to latest
oclifto get the fix. https://github.com/oclif/oclif/pull/1158Hey all, @ryandagg and I were looking at this failure in the CLI promote pipeline, here’s what we found:
oclif pack:debgenerates deb pkgs for the targets defined inbuildConfig.targets: https://github.com/oclif/oclif/blob/main/src/commands/pack/deb.ts#L94these targets can be set by users in the CLI pjson (
pjson.oclif.update.node.targets), and will default to these if the previous object is empty: https://github.com/oclif/oclif/blob/main/src/tarballs/config.ts#L13-L20So,
pack:debwill not generate a deb pkg forlinux-x86. But even if you set that target manually in your pjson, oclif will fail to build the pkg because node dropped 32bits build for linux a long time ago: https://github.com/nodejs/build/issues/885oclif upload:debtries to upload thei386pkg: https://github.com/oclif/oclif/blob/f483d1cc509a11fd9c255655cf29fc099be1f6f6/src/commands/upload/deb.ts#L54but skips it here because the file doesn’t exists: https://github.com/oclif/oclif/blob/f483d1cc509a11fd9c255655cf29fc099be1f6f6/src/commands/upload/deb.ts#L47
oclif promote:debpicks targets the same waypack:debdoes BUT you can also specify them via the--targetsflag: https://github.com/oclif/oclif/blob/f483d1cc509a11fd9c255655cf29fc099be1f6f6/src/commands/promote.ts#L31 https://github.com/oclif/oclif/blob/f483d1cc509a11fd9c255655cf29fc099be1f6f6/src/commands/promote.ts#L20the odd thing is that when promoting the deb pkgs it just hardcodes the
i386target (which again, hasn’t worked for a very long time now) https://github.com/oclif/oclif/blob/f483d1cc509a11fd9c255655cf29fc099be1f6f6/src/commands/promote.ts#L155-L156Another issue with this is that
promote:debcan never promote thearmdeb pkg thatpack:debbuilds.I don’t have a working example unfortunately. You might ask @mdonnalley, he might be able to provide you with one.