Skip to content

Commit

Permalink
The warning about commits is only for Git repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed May 5, 2024
1 parent 4d3689f commit f530e24
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/how-to-source-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@ picked up from the source code repository instead of from Hackage.
.. Warning::

Only a commit hash pins to an exact version of the *source code*.
Only a commit hash pins to an exact version of the *source code* for Git
respositories.

- If the ``tag`` field is omitted, the latest commit on the default branch is used.
- If the ``tag`` field is a branch name then the latest commit on that branch is used.
- If the ``tag`` field is a VCS tag then the current commit that tag points to is used.
- If the ``tag`` field is omitted then the latest commit on the Git default branch is used.
- If the ``tag`` field is a Git branch name then the latest commit on that branch is used.
- If the ``tag`` field is a Git tag then the current commit that tag points to is used.


*Source code* as a package publisher
Expand Down

0 comments on commit f530e24

Please sign in to comment.