Skip to content

pin fetched dependency versions in cmake build#146

Merged
awvwgk merged 1 commit intodftd4:mainfrom
ricrogz:pin_fetched_deps_revs
Feb 21, 2022
Merged

pin fetched dependency versions in cmake build#146
awvwgk merged 1 commit intodftd4:mainfrom
ricrogz:pin_fetched_deps_revs

Conversation

@ricrogz
Copy link
Copy Markdown
Contributor

@ricrogz ricrogz commented Feb 18, 2022

I noticed that when mctc-lib, mstore and multicharge are fetched, cmake always fetched the head of the repository.

This patch adds some code to pin the fetched dependencies to the same versions specified in dftd4/subprojects/*.wrap

This helps make automated builds more reproducible, although it would be desirable to centralize versions in a single central file, or at least set them up as global CMake variables.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 21, 2022

Codecov Report

Merging #146 (c635e02) into main (3d8ef7a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   59.02%   59.02%           
=======================================
  Files          42       42           
  Lines        3014     3014           
  Branches     1019     1019           
=======================================
  Hits         1779     1779           
  Misses        654      654           
  Partials      581      581           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d8ef7a...c635e02. Read the comment docs.

Copy link
Copy Markdown
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing.

The preferred way to build dftd4 is via meson rather than CMake, the latter is mainly available to support projects, which want to build dftd4 on-demand in CMake (like DFTB+). However, contributions to make the CMake build simpler/easier are always welcome.

@awvwgk awvwgk added the build Build system related issues (platform, compilers) label Feb 21, 2022
@awvwgk awvwgk merged commit 5e8b920 into dftd4:main Feb 21, 2022
@ricrogz ricrogz deleted the pin_fetched_deps_revs branch February 21, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build system related issues (platform, compilers)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants