클라이언트에서는 태그를 없애고 서버에서만 관리

This commit is contained in:
2023-07-03 11:34:21 +09:00
parent 9bd09509c8
commit 4d9a25dd6b
4 changed files with 77 additions and 80 deletions

View File

@ -148,12 +148,9 @@ 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,
Tag: string(tag),
})
}
}
@ -190,7 +187,7 @@ func (hc *houstonClient) makeOperationQueryRequest() *protos.OperationQueryReque
deploys = append(deploys, &protos.DeployedVersions{
Name: selfname,
Versions: []*protos.VersionAndArgs{
{Version: hc.version, Args: selfargs, Tag: "#readonly"},
{Version: hc.version, Args: selfargs},
},
})