AppliedLogicSystems / homebrew-als-prolog

Homebrew/Linuxbrew formula for ALS Prolog
2 stars 0 forks source link

SHA check fails for tag tar-ball after more ALS-Prolog master commits. #2

Closed chuckhoupt closed 6 years ago

chuckhoupt commented 8 years ago

ALS Prolog uses export-subst to automatically label git-archive tar-balls with version information. Unfortunately, this means that the tar-balls can change slightly, depending on the state of master.

Specifically, the ARCHIVE variable in the version script changes:

-ARCHIVE='9fa6c28 (HEAD -> master, tag: v3.3.0)'
+ARCHIVE='9fa6c28 (tag: v3.3.0)'

When master and the version tag point to the same commit, then the string "HEAD -> master" appears in the description. After more commits are pushed to master, the description just show the tag.

This behavior breaks the Homebrew formula's SHA1 hash, so it needs to be updated both when a new release is tagged, and again when any further commits are made to master.

Possible solutions are to switch the formula back to head with an explicit version tag.

chuckhoupt commented 6 years ago

Fixed by AppliedLogicSystems/ALSProlog@9a357cbacfd143aaec2da6f58a8f645d2684c570