mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-02 09:39:24 +09:00
add: build info to db and cache
This commit is contained in:
parent
c122912fe8
commit
ecf849ae8a
2 changed files with 4 additions and 3 deletions
|
@ -13,17 +13,18 @@ function insert_version_info(db::SQLite.DB, jld2_slavelog::JLD2.JLDFile)
|
|||
""",
|
||||
)
|
||||
converter_git_describe = try
|
||||
read(`git describe --dirty`, String)
|
||||
read(`git describe --dirty`, String) |> chomp
|
||||
catch e
|
||||
@warn "Failed to get git describe: $e"
|
||||
""
|
||||
end
|
||||
@info "converter version info" converter = pkgversion(@__MODULE__) |> string converter_git_describe
|
||||
datetime = round(Int64, datetime2unix(now())) |> string
|
||||
DBInterface.execute(
|
||||
stmt_insert_version,
|
||||
(;
|
||||
converter = pkgversion(@__MODULE__) |> string,
|
||||
converter_git = converter_git_describe,
|
||||
converter_git = converter_git_describe * '+' * datetime,
|
||||
),
|
||||
)
|
||||
jld2_slavelog["meta"] = converter_git_describe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue