
Use full length commit sha instead of short prefixes, to improve reproducibility (future clashes) and guard against compromised repos and man in the middle attacks. Abbreviated commit shas are expanded to full length, to guard against future clashes on short hash. It also guards against compromised repos and man in the middle attacks, where attackers can easily fabricate a malicious commit with a shasum prefix collision. Versions with just tags now also get a commit sha, which can later be used to check for retagged commits.
19 lines
629 B
Python
19 lines
629 B
Python
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class CppLogger(CMakePackage):
|
|
"""A simple C++ logger"""
|
|
|
|
homepage = "https://github.com/hariharan-devarajan/cpp-logger"
|
|
git = "https://github.com/hariharan-devarajan/cpp-logger.git"
|
|
maintainers("hariharan-devarajan")
|
|
|
|
version("develop", branch="develop")
|
|
version("master", branch="master")
|
|
version("0.0.1", tag="v0.0.1", commit="47994ccd8958129a422950a432742b902bb283ca")
|