Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions packages/setup-ocaml/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ export const CYGWIN_ROOT_BIN = path.join(CYGWIN_ROOT, "bin");

export const DUNE_CACHE_ROOT = (() => {
const homeDir = os.homedir();
if (PLATFORM === "windows") {
// [HACK] https://github.com/ocaml/setup-ocaml/pull/55
const duneCacheDir = path.join("D:", "dune");
return duneCacheDir;
}
const xdgCacheHome = process.env.XDG_CACHE_HOME;
const duneCacheDir = xdgCacheHome
? path.join(xdgCacheHome, "dune")
: path.join(homeDir, ".cache", "dune");
: PLATFORM === "windows"
? // [HACK] https://github.com/ocaml/setup-ocaml/pull/55
path.join("D:", "dune")
: path.join(homeDir, ".cache", "dune");
return duneCacheDir;
})();

Expand Down
Loading