(ctx context.Context)
| 55 | } |
| 56 | |
| 57 | func currentLookupLockMode(ctx context.Context) (workspace.LockMode, error) { |
| 58 | clientMetadata, err := engine.ClientMetadataFromContext(ctx) |
| 59 | if err != nil { |
| 60 | return "", fmt.Errorf("client metadata: %w", err) |
| 61 | } |
| 62 | return workspace.ResolveLockMode(clientMetadata.LockMode) |
| 63 | } |
| 64 | |
| 65 | type lookupLockResolution struct { |
| 66 | Pin string |