You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ja...@apache.org on 2019/09/05 04:53:25 UTC

[ant] branch master updated: Clarify the snapcraft release command

This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a3e903  Clarify the snapcraft release command
7a3e903 is described below

commit 7a3e9034e1583c319b809e641824a2fc10423f15
Author: Jaikiran Pai <ja...@apache.org>
AuthorDate: Thu Sep 5 10:23:13 2019 +0530

    Clarify the snapcraft release command
---
 ReleaseInstructions | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ReleaseInstructions b/ReleaseInstructions
index 6a59b4f..191662a 100644
--- a/ReleaseInstructions
+++ b/ReleaseInstructions
@@ -315,9 +315,13 @@ Note: This document was adapted from the one created in the context of
 23. copy the candidate snaps to stable. First figure out the revision
 
     $ snapcraft status ant
-    $ snapcraft release ant REVISION latest/stable 1.10/stable
+    $ snapcraft release ant REVISION latest/stable
+    $ snapcraft release ant REVISION 1.10/stable
 
-    where REVISION is the revision you want to promote
+    where REVISION is the revision you want to promote (keep in mind that the
+    REVISION isn't the version you are releasing. snapcraft uses its own separate integer
+    value for the REVISION and this value is listed as the output of the previous
+    "snapcraft status ant" command)
 
 24. wait a few hours for the mirrors to catch up
 


Re: [ant] branch master updated: Clarify the snapcraft release command

Posted by Jaikiran Pai <ja...@apache.org>.
Hi Stefan,

On 05/09/19 12:38 PM, Stefan Bodewig wrote:
> On 2019-09-05, <ja...@apache.org> wrote:
>
>> -    $ snapcraft release ant REVISION latest/stable 1.10/stable
>> +    $ snapcraft release ant REVISION latest/stable
>> +    $ snapcraft release ant REVISION 1.10/stable
> I'm pretty sure I've done it with the single command when I published
> 1.10.6, but I may be wrong. Also the snapcraft CLI may have changed in
> between.

I think maybe they changed their CLI. When I ran the following during
the release:

snapcraft release ant 13 latest/stable 1.10/stable

I kept getting an error:

Usage: snapcraft release [OPTIONS] <snap-name> <revision> <channels>
Try "snapcraft release -h" for help.

Error: Got unexpected extra argument (1.10/stable)

Splitting them up into two, worked fine.

Now that I have a few minutes, I checked their documentation (snapcraft
release -h) and that states:

"Release <snap-name> on <revision> to the selected store <channels>.
  <channels> is a comma separated list of valid channels on the store.

..."

So if I had used a comma separated list, I guess that would have worked too.

-Jaikiran



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [ant] branch master updated: Clarify the snapcraft release command

Posted by Paul King <pa...@asert.com.au>.
For Groovy we use a single command but as part of push with multiple
--release options, something like:

snapcraft push --release=3.0/beta --release=beta groovy_3.0.0-beta-3_all.snap


On Thu, Sep 5, 2019 at 5:08 PM Stefan Bodewig <bo...@apache.org> wrote:

> On 2019-09-05, <ja...@apache.org> wrote:
>
> > -    $ snapcraft release ant REVISION latest/stable 1.10/stable
> > +    $ snapcraft release ant REVISION latest/stable
> > +    $ snapcraft release ant REVISION 1.10/stable
>
> I'm pretty sure I've done it with the single command when I published
> 1.10.6, but I may be wrong. Also the snapcraft CLI may have changed in
> between.
>
> Thank you for improving the instructions.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Re: [ant] branch master updated: Clarify the snapcraft release command

Posted by Stefan Bodewig <bo...@apache.org>.
On 2019-09-05, <ja...@apache.org> wrote:

> -    $ snapcraft release ant REVISION latest/stable 1.10/stable
> +    $ snapcraft release ant REVISION latest/stable
> +    $ snapcraft release ant REVISION 1.10/stable

I'm pretty sure I've done it with the single command when I published
1.10.6, but I may be wrong. Also the snapcraft CLI may have changed in
between.

Thank you for improving the instructions.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org