From 6f07d1ecd6cdd71db61906ce2a380c6782b08d3b Mon Sep 17 00:00:00 2001 From: William Durand Date: Thu, 14 Sep 2023 11:19:53 +0200 Subject: [PATCH] feat: warn web-ext v7 users about upcoming changes to the sign command (#2879) --- src/cmd/sign.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd/sign.js b/src/cmd/sign.js index deccf7534e..eb15c11a9d 100644 --- a/src/cmd/sign.js +++ b/src/cmd/sign.js @@ -84,6 +84,12 @@ export default function sign( asyncFsReadFile = defaultAsyncFsReadFile, }: SignOptions = {} ): Promise { + if (!useSubmissionApi) { + log.warn( + 'IMPORTANT: web-ext v8 will introduce a new AMO submission API for signing and you might need to take actions when upgrading from v7 to v8. You can test this upcoming change now by specifying `--use-submission-api` to the `sign` command. If you want to keep using the API you are using now (via "sign-addon"), you must stay on v7.' + ); + } + return withTempDir(async function (tmpDir) { await prepareArtifactsDir(artifactsDir);