package modcache
import "cuelang.org/go/internal/mod/modcache"
Index ¶
- func New(registry ociregistry.Interface, dir string) (modload.Registry, error)
- func RemoveAll(dir string) error
Functions ¶
func New ¶
New returns r wrapped inside a caching layer that stores persistent cached content inside the given OS directory.
The `modpkgload.SourceLoc.FS` fields in the locations returned by the registry implement the `OSRootFS` interface, allowing a caller to find the native OS filepath where modules are stored.
func RemoveAll ¶
RemoveAll removes a directory written by Fetch, first applying any permission changes needed to do so.
Source Files ¶
cache.go fetch.go
- Version
- v0.8.0-alpha.1
- Published
- Feb 12, 2024
- Platform
- js/wasm
- Imports
- 22 packages
- Last checked
- 16 minutes ago –
Tools for package owners.