Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 541 forks source link

Why is glide changing timestamps of some files in the vendor directory? #962

Open abebrown opened 6 years ago

abebrown commented 6 years ago

I have a project with a dependency on a private repo which glide retrieves with no issue. However, the timestamps of the files in the vendor directory are not the modification time from the actual repo or in the glide cache.

The files seem to always be updated to the last time a build was run (using make) and causes unnecessary compilations and other transformations in the project (akin to running make clean && make)

Looking at debug logs I can see these messages:

...
[DEBUG] Unlocking https-github.com-grpc-ecosystem-grpc-gateway
[DEBUG] Unlocking https-github.com-golang-mock
[DEBUG] Unlocking https-github.com-golang-protobuf
[INFO]  --> Exporting golang.org/x/sys
[DEBUG] Unlocking https-github.com-sirupsen-logrus
[DEBUG] Unlocking https-github.com-hashicorp-go-version
[DEBUG] Unlocking https-YYY
[DEBUG] Unlocking https-google.golang.org-grpc
[DEBUG] Unlocking https-google.golang.org-genproto
[DEBUG] Unlocking https-golang.org-x-crypto
[DEBUG] Unlocking https-golang.org-x-sys
[DEBUG] Unlocking https-golang.org-x-net
[DEBUG] Unlocking https-golang.org-x-text
**[INFO]    Replacing existing vendor dependencies**
**[DEBUG]   Cross link err, trying manual copy: rename /tmp/glide-vendor383902967/vendor /home/bonny/dev/XXX/.gopath.mk/src/XXX/vendor: invalid cross-device link**
...

Does anyone knows why this is happening?