@lage-run/cli 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri, 27 Jan 2023
|
|
5
|
+
"date": "Fri, 27 Jan 2023 20:01:58 GMT",
|
|
6
|
+
"tag": "@lage-run/cli_v0.6.4",
|
|
7
|
+
"version": "0.6.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/cli",
|
|
13
|
+
"commit": "597b0e8ad233f460a0d16e0996079fa97bd9de14",
|
|
14
|
+
"comment": "make sure to take the task args into account for caching"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 27 Jan 2023 00:28:15 GMT",
|
|
6
21
|
"tag": "@lage-run/cli_v0.6.3",
|
|
7
22
|
"version": "0.6.3",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @lage-run/cli
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri, 27 Jan 2023
|
|
3
|
+
This log was last generated on Fri, 27 Jan 2023 20:01:58 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.6.4
|
|
8
|
+
|
|
9
|
+
Fri, 27 Jan 2023 20:01:58 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- make sure to take the task args into account for caching (kchau@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.6.3
|
|
8
16
|
|
|
9
|
-
Fri, 27 Jan 2023 00:28:
|
|
17
|
+
Fri, 27 Jan 2023 00:28:15 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "createCache", {
|
|
|
9
9
|
const _cache = require("@lage-run/cache");
|
|
10
10
|
const _isRunningFromCIJs = require("../isRunningFromCI.js");
|
|
11
11
|
function createCache(options) {
|
|
12
|
-
const { cacheOptions , logger , root , skipLocalCache } = options;
|
|
12
|
+
const { cacheOptions , logger , root , skipLocalCache , cliArgs } = options;
|
|
13
13
|
const hasRemoteCacheConfig = !!cacheOptions?.cacheStorageConfig || !!process.env.BACKFILL_CACHE_PROVIDER || !!process.env.BACKFILL_CACHE_PROVIDER_OPTIONS;
|
|
14
14
|
// Create Cache Provider
|
|
15
15
|
const cacheProvider = new _cache.RemoteFallbackCacheProvider({
|
|
@@ -38,7 +38,8 @@ function createCache(options) {
|
|
|
38
38
|
const hasher = new _cache.TargetHasher({
|
|
39
39
|
root,
|
|
40
40
|
environmentGlob: cacheOptions?.environmentGlob ?? [],
|
|
41
|
-
cacheKey: cacheOptions?.cacheKey
|
|
41
|
+
cacheKey: cacheOptions?.cacheKey,
|
|
42
|
+
cliArgs
|
|
42
43
|
});
|
|
43
44
|
return {
|
|
44
45
|
cacheProvider,
|
|
@@ -67,7 +67,8 @@ async function runAction(options, command) {
|
|
|
67
67
|
root,
|
|
68
68
|
logger,
|
|
69
69
|
cacheOptions: config.cacheOptions,
|
|
70
|
-
skipLocalCache: options.skipLocalCache
|
|
70
|
+
skipLocalCache: options.skipLocalCache,
|
|
71
|
+
cliArgs: taskArgs
|
|
71
72
|
});
|
|
72
73
|
logger.verbose(`Running with ${concurrency} workers`);
|
|
73
74
|
const filteredPipeline = (0, _filterPipelineDefinitionsJs.filterPipelineDefinitions)(targetGraph.targets.values(), config.pipeline);
|
|
@@ -92,7 +92,8 @@ async function watchAction(options, command) {
|
|
|
92
92
|
root,
|
|
93
93
|
logger,
|
|
94
94
|
cacheOptions: config.cacheOptions,
|
|
95
|
-
skipLocalCache: false
|
|
95
|
+
skipLocalCache: false,
|
|
96
|
+
cliArgs: taskArgs
|
|
96
97
|
});
|
|
97
98
|
const filteredPipeline = (0, _filterPipelineDefinitionsJs.filterPipelineDefinitions)(targetGraph.targets.values(), config.pipeline);
|
|
98
99
|
const maxWorkersPerTaskMap = (0, _getMaxWorkersPerTaskJs.getMaxWorkersPerTaskFromOptions)(options.maxWorkersPerTask);
|