WithChroot allows overriding the root directory ghw examines.
(path string)
| 39 | |
| 40 | // WithChroot allows overriding the root directory ghw examines. |
| 41 | func WithChroot(path string) Modifier { |
| 42 | return func(ctx context.Context) context.Context { |
| 43 | return context.WithValue(ctx, chrootKey, path) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // Chroot gets a context's chroot override or the default if none is set. |
| 48 | func Chroot(ctx context.Context) string { |
no outgoing calls
searching dependent graphs…