Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
authorBrad Warren <bmw@users.noreply.github.com>2020-10-05 18:37:01 +0300
committerGitHub <noreply@github.com>2020-10-05 18:37:01 +0300
commitcc769067124aae2e5366b9eae1439a7ff5bb7343 (patch)
tree90b9b20c2a0e2e4c27ad00287fa2554d16fd9457 /snap
parentef8c481634b642489c20b29d2a8c30526d5b5adf (diff)
Set Certbot snap version from __init__.py (#8344)
Fixes https://github.com/certbot/certbot/issues/8166 following the feedback in https://github.com/certbot/certbot/pull/8337. I took the command to get Certbot's version from: https://github.com/certbot/certbot/blob/ef8c481634b642489c20b29d2a8c30526d5b5adf/snap/snapcraft.yaml#L90 You can see the snap tests passing with this change at https://dev.azure.com/certbot/certbot/_build/results?buildId=2785&view=results.
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 2b564662b..5fbf8503d 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -80,7 +80,7 @@ parts:
snapcraftctl pull
cd $SNAPCRAFT_PART_SRC
python3 tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt | grep -v python-augeas > snap-constraints.txt
- snapcraftctl set-version `git describe|sed s/^v//`
+ snapcraftctl set-version `grep -oP "__version__ = '\K.*(?=')" $SNAPCRAFT_PART_SRC/certbot/certbot/__init__.py`
shared-metadata:
plugin: dump
source: .