FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mcpp/src/lockfile.cppm at main · mcpp-community/mcpp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
mcpp-community
/
mcpp
Public
Notifications
You must be signed in to change notification settings
Fork
12
Star
109
Code
Issues
35
Pull requests
6
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
mcpp
/
src
/
lockfile.cppm
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (28 loc) · 1.21 KB
Breadcrumbs
mcpp
/
src
/
lockfile.cppm
Copy path
File metadata and controls
36 lines (28 loc) · 1.21 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
mcpp.lockfile — backward-compat shim. The implementation has moved
//
to `mcpp.pm.lock_io` as part of the package-management subsystem
//
refactor (PR-R2 in
//
`.agents/docs/2026-05-08-pm-subsystem-architecture.md`).
//
//
All existing callers continue to use `mcpp::lockfile::Lockfile`,
//
`mcpp::lockfile::load`, etc. — the aliases below resolve those to
//
the new `mcpp::pm` types. Once `cli.cppm` migrates to `mcpp::pm::`
//
directly this shim can be deleted.
export
module
mcpp.lockfile;
import
std;
export
import
mcpp.pm.lock_io;
export
namespace
mcpp
::lockfile {
using
LockedIndex = mcpp::pm::LockedIndex;
using
LockedPackage = mcpp::pm::LockedPackage;
using
Lockfile = mcpp::pm::Lockfile;
using
LockError = mcpp::pm::LockError;
inline
std::expected<Lockfile, LockError>
load
(
const
std::filesystem::path& path) {
return
mcpp::pm::load
(path);
}
inline
std::expected<
void
, LockError>
write
(
const
Lockfile& lock,
const
std::filesystem::path& path) {
return
mcpp::pm::write
(lock, path);
}
inline
std::string
serialize
(
const
Lockfile& lock) {
return
mcpp::pm::serialize
(lock); }
inline
std::string
compute_hash
(
const
Lockfile& lock) {
return
mcpp::pm::compute_hash
(lock); }
}
//
namespace mcpp::lockfile
Back
|
FazBrowse Home
|
New Git URL