This mercurial checkout does not contain an explicit version
20 hg:
21 repo: 'https://foosball.example.org/path/to/repo.git'
22 dest: /srv/checkout
23 revision: default24
25 - name: fetch metadata as json
26 shell: cargo metadata | jq
Description
All version control checkouts must point to an explicit commit or tag, not just latest
.
Relying on latest
may lead to breakages in the application if the latest version is unstable or not meant for use with the current system.
Bad practice
- hg:
repo: https://bitbucket.org/user/repo1
dest: /home/user/repo1
revision: latest
purge: yes
Recommended
- hg:
repo: https://bitbucket.org/user/repo1
dest: /home/user/repo1
revision: v1.2.3
purge: yes