MCPcopy
hub / github.com/docker/compose / osDependentCacheDir

Function osDependentCacheDir

pkg/remote/cache_unix.go:30–36  ·  view source on GitHub ↗

Based on https://github.com/adrg/xdg Licensed under MIT License (MIT) Copyright (c) 2014 Adrian-George Bostan <adrg@epistack.com>

()

Source from the content-addressed store, hash-verified

28// Copyright (c) 2014 Adrian-George Bostan <adrg@epistack.com>
29
30func osDependentCacheDir() (string, error) {
31 home, err := os.UserHomeDir()
32 if err != nil {
33 return "", err
34 }
35 return filepath.Join(home, ".cache", "docker-compose"), nil
36}

Callers 1

cacheDirFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected