This git checkout does not contain an explicit version
14 git:
15 repo: 'https://foosball.example.org/path/to/repo.git'
16 dest: /srv/checkout
17 version: latest18
19 - name: clone mercurial repo
20 hg:
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
- git:
repo: 'https://foosball.example.org/path/to/repo.git'
dest: /srv/checkout
version: latest
Recommended
- git:
repo: 'https://foosball.example.org/path/to/repo.git'
dest: /srv/checkout
version: release-0.22