Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp on backup files, C++11 version #64

Merged
merged 6 commits into from
Jul 23, 2024
Merged

Conversation

arthurmco
Copy link
Collaborator

Implements changes called on #52, but using C++11
This PR is also a superset of #52, so commits there will appear here.

(I would add there, but Github did not let me...)

@arthurmco arthurmco added the enhancement New feature or request label Jul 19, 2024
@lbgracioso
Copy link
Collaborator

LGTM.

@arthurmco arthurmco changed the title Add timestamp on backup files Add timestamp on backup files, C++11 version Jul 19, 2024
Copy link

sonarcloud bot commented Jul 19, 2024

CPMFindPackage(NAME spdlog)
CPMFindPackage(NAME spdlog
OPTIONS
"SPDLOG_FMT_EXTERNAL ON")
Copy link
Owner

Choose a reason for hiding this comment

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

Does that works when using Conan instead of CPM?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably not... but I used conan and it worked.

Copy link
Owner

Choose a reason for hiding this comment

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

Well whatever. That may be an issue at some point but may be not. If not we gonna open a bug for this.

The root of the problem here is that CPM seems to be the way forward for Package Management, but there's some packages that aren't available yet. So we rely on Conan for it.

A bigger issue will be when we move to std::format... what if this PR breaks with it?

Copy link
Collaborator Author

@arthurmco arthurmco Jul 23, 2024

Choose a reason for hiding this comment

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

CPM seems to download packages from github repositories, so the "non-presence" might not be a problem.

Regarding std::format, it supports formatting chrono data types (source):

For chrono types, the format specification is interpreted as chrono format specification.

@viniciusferrao viniciusferrao merged commit 0bd6556 into master Jul 23, 2024
3 checks passed
@arthurmco arthurmco deleted the chrono_add branch July 24, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants