/kind bug
I noticed a strange behaviour when I save and push an artifact from the root level of my docker container (python:3.7-slim). The directoryStructure metadata field is set to my artifact name without the ORMBModelDirectory prepended to it, but if I run the save and push commands from the /home directory of my container then I observe the "expected normal" behaviour and the directoryStructure metadata field is set to model/<artifact_name> 😅
I know I should not do that at the root level of my containers but I don't understand what is causing this result. I don't know go but I feel like this is related to it:
|
// update the name to correctly reflect the desired destination when untaring |
|
header.Name = strings.TrimPrefix( |
|
strings.Replace(file, parentDir, "", -1), string(filepath.Separator)) |
Any idea where this is coming from and if this is expected in that situation?
I noticed a strange behaviour when I save and push an artifact from the root level of my docker container (
python:3.7-slim). ThedirectoryStructuremetadata field is set to my artifact name without theORMBModelDirectoryprepended to it, but if I run the save and push commands from the/homedirectory of my container then I observe the "expected normal" behaviour and thedirectoryStructuremetadata field is set tomodel/<artifact_name>😅I know I should not do that at the root level of my containers but I don't understand what is causing this result. I don't know go but I feel like this is related to it:
ormb/pkg/saver/saver.go
Lines 127 to 129 in 7907828
Any idea where this is coming from and if this is expected in that situation?