{% set github_version = salt['pillar.get']('github:version') %}
{%- if github_version %}
github-hub:
  archive.extracted:
    - name: /opt/github/
    - source: https://github.com/github/hub/releases/download/v{{ github_version }}/hub-linux-amd64-{{ github_version }}.tgz
    - source_hash: sha256={{ salt['pillar.get']('github:sha256sum') }}
    - archive_format: tar
    - tar_options: -z --strip-components=1
{%- endif %}

{% set github_version = salt['pillar.get']('github:version') %}
{%- if github_version %}
github-hub:
  archive.extracted:
    - name: /opt/github/
    - source: https://github.com/github/hub/releases/download/v{{ github_version }}/hub-linux-amd64-{{ github_version }}.tgz
    - source_hash: sha256={{ salt['pillar.get']('github:sha256sum') }}
{%- if grains['saltversioninfo'] >= [2016, 3, 0] %}
    - source_hash_update: true
{%- endif %}
    - archive_format: tar
    - tar_options: -z --strip-components=1
{%- endif %}

Add source_hash_update to hub state
Add source_hash_update to hub state

malept/dev-environment,malept/dev-environment,malept/dev-environment