Skip to content

Commit 6f5d038

Browse files
committed
Compile dist/
1 parent 402a7d4 commit 6f5d038

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

dist/main/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ module.exports = {
137137
name: 'disk',
138138
paths: [bazelDisk]
139139
},
140-
maxDiskCacheSize,
141140
externalCache,
142141
paths: {
143142
bazelExternal,
@@ -169,7 +168,12 @@ const core = __nccwpck_require__(7484)
169168

170169
function init(cacheConfig) {
171170
core.startGroup(`Computing initial ${cacheConfig.name} cache hash`)
172-
fs.writeFileSync(cacheConfig.paths[0] + '.sha256', computeCacheHash(cacheConfig.paths[0]))
171+
const hashFile = cacheConfig.paths[0] + '.sha256'
172+
const parentDir = path.dirname(hashFile)
173+
if (!fs.existsSync(parentDir)) {
174+
fs.mkdirSync(parentDir, { recursive: true })
175+
}
176+
fs.writeFileSync(hashFile, computeCacheHash(cacheConfig.paths[0]))
173177
core.endGroup()
174178
}
175179

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ module.exports = {
137137
name: 'disk',
138138
paths: [bazelDisk]
139139
},
140-
maxDiskCacheSize,
141140
externalCache,
142141
paths: {
143142
bazelExternal,
@@ -169,7 +168,12 @@ const core = __nccwpck_require__(7484)
169168

170169
function init(cacheConfig) {
171170
core.startGroup(`Computing initial ${cacheConfig.name} cache hash`)
172-
fs.writeFileSync(cacheConfig.paths[0] + '.sha256', computeCacheHash(cacheConfig.paths[0]))
171+
const hashFile = cacheConfig.paths[0] + '.sha256'
172+
const parentDir = path.dirname(hashFile)
173+
if (!fs.existsSync(parentDir)) {
174+
fs.mkdirSync(parentDir, { recursive: true })
175+
}
176+
fs.writeFileSync(hashFile, computeCacheHash(cacheConfig.paths[0]))
173177
core.endGroup()
174178
}
175179

dist/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)