This commit is contained in:
Sascha Mann
2020-06-25 13:46:40 +02:00
parent ead3831d7a
commit fac69f5780
2 changed files with 2 additions and 0 deletions

1
lib/caching.js generated
View File

@@ -26,6 +26,7 @@ const JULIA_HOME = path.join(`${process.env.HOME}`, '.julia');
*/ */
function cacheArtifacts() { function cacheArtifacts() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
// TODO: Add error handling in case no Project.toml files are present
const projectFiles = yield (yield glob.create('**/Project.toml')).glob(); const projectFiles = yield (yield glob.create('**/Project.toml')).glob();
let projectsHash = ''; let projectsHash = '';
projectFiles.forEach((f) => { projectFiles.forEach((f) => {

View File

@@ -12,6 +12,7 @@ const JULIA_HOME = path.join(`${process.env.HOME}`, '.julia')
* Cache the ~/.julia/artifacts directory. * Cache the ~/.julia/artifacts directory.
*/ */
export async function cacheArtifacts(): Promise<number> { export async function cacheArtifacts(): Promise<number> {
// TODO: Add error handling in case no Project.toml files are present
const projectFiles = await (await glob.create('**/Project.toml')).glob() const projectFiles = await (await glob.create('**/Project.toml')).glob()
let projectsHash = '' let projectsHash = ''
projectFiles.forEach((f) => { projectFiles.forEach((f) => {