hammerkit 1.11.0 → 1.11.1

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.
@@ -6,7 +6,10 @@ const plan_work_volume_1 = require("./plan-work-volume");
6
6
  const template_value_1 = require("./template-value");
7
7
  function parseWorkVolume(cwd, volume, envs) {
8
8
  if (typeof volume === 'string') {
9
- const parts = volume.split(':');
9
+ // `$NAME` references resolve first, as in mounts, so a value holding a
10
+ // colon can't break the name:path split
11
+ const value = (0, template_value_1.templateValue)(volume, envs);
12
+ const parts = value.split(':');
10
13
  if (parts.length === 2) {
11
14
  return parseVolume(cwd, parts[0], parts[1], false);
12
15
  }
@@ -14,7 +17,7 @@ function parseWorkVolume(cwd, volume, envs) {
14
17
  return parseVolume(cwd, parts[0], parts[1], parts[2] === 'ro');
15
18
  }
16
19
  else {
17
- throw new Error(`invalid volume ${volume}`);
20
+ throw new Error(`invalid volume ${value}`);
18
21
  }
19
22
  }
20
23
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hammerkit",
3
3
  "description": "Containerized build tool with incremental caching that runs the same build file locally, in Docker and on Kubernetes.",
4
- "version": "1.11.0",
4
+ "version": "1.11.1",
5
5
  "keywords": [
6
6
  "build",
7
7
  "build-tool",