reaonly 대신 tag로 교체

This commit is contained in:
2023-07-03 10:54:13 +09:00
parent 1b57e9f87e
commit 9bd09509c8
3 changed files with 76 additions and 65 deletions

View File

@ -148,10 +148,12 @@ func gatherDeployedPrograms(storageRoot, name string) []*protos.VersionAndArgs {
for _, ver := range vers {
if ver.IsDir() {
args := lastExecutionArgs(path.Join(targetPath, ver.Name()))
tag, _ := os.ReadFile(path.Join(targetPath, ver.Name(), "@tags"))
rawvers = append(rawvers, &protos.VersionAndArgs{
Version: ver.Name(),
Args: args,
Readonly: false,
Version: ver.Name(),
Args: args,
Tag: string(tag),
})
}
}
@ -188,7 +190,7 @@ func (hc *houstonClient) makeOperationQueryRequest() *protos.OperationQueryReque
deploys = append(deploys, &protos.DeployedVersions{
Name: selfname,
Versions: []*protos.VersionAndArgs{
{Version: hc.version, Args: selfargs, Readonly: true},
{Version: hc.version, Args: selfargs, Tag: "#readonly"},
},
})