Hi just editing a live stream I did yesterday on the new Go SDK and there were a few bits that I could make work but did not really understand what they were doing.
With the following code
client.Host().Workdir().Read().ID(ctx)
This obtains a directory ID that I can use in the mount points for containers but under the hood what does this actually do. Is it reading the contents of the and copying this as a snapshot into the build kit container so that it can be mounted as a volume. Or does it just create a reference to the directory so that every time I use this ID the receiver gets the current directory state not the state at the time Read was called?