Closed trimpim closed 10 months ago
@trimpim Ouch, that slipped through our fingers. Thanks for providing a patch as well.
@nfeske I'm a bit hesitant w.r.t. modifying the depot tools on the Goa side. What is your opinion? Should we prefer the first solution instead, since api archives tend to be small anyway?
@jschlatow while doing more tests, we discovered that the same happens also to the (This was reported by a colleague but when I do export the src
archives.src
archive, it contains files).
After discussing the issue internally we came to the conclusion, that we think, that the content of the depot directory should be the same regardless, if it was created by goa import
or by downloading and extracting the published archive.
Therefore we would go with copying instead of linking. The additional disk space is not that a big issue these days from our point of view.
@nfeske I'm a bit hesitant w.r.t. modifying the depot tools on the Goa side. What is your opinion? Should we prefer the first solution instead, since api archives tend to be small anyway?
Depot archives are not supposed to contain any symlinks but the actual content. The content of a published tar file should perfectly correspond to corresponding directory of depot archive. So there is no way around copying files.
After discussing the issue internally we came to the conclusion, that we think, that the content of the depot directory should be the same regardless, if it was created by
goa import
or by downloading and extracting the published archive. Therefore we would go with copying instead of linking. The additional disk space is not that a big issue these days from our point of view.
You make a very good point. I merged a92d49c to staging.
While building some library and binary archives on different computers we noticed, that the published archives contain symbolic links to absolute file paths from the machine creating the archive.
I see two ways to fix this.
extract_api_artifacts
do not create a symbolic link but copy the files.If there are no objections, I would create and test a patch that implements the second solution.