You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dagger API doesn't provide an efficient way to compute a file's digest. Which, in turn, makes it impossible to efficiently compare two files, or check if a file has changed for example. There are workarounds, but they either add complexity, hurt performance, or both.
Solution
Add a function to compute a file's digest. Ideally reusing the underlying buildkit digest.
extendtypeFile {
""" Return the file's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine. """digest: String!
}
Reacted by Helder Correia, Thanabodee Charoenpiriyakij, Nipuna Perera and Patrick Magee
Activity