@getmonoceros/workbench 1.6.5 → 1.6.7
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/dist/bin.js +8 -26
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -804,7 +804,8 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
|
|
|
804
804
|
features[f.devcontainerKey] = f.options;
|
|
805
805
|
}
|
|
806
806
|
const featuresField = Object.keys(features).length > 0 ? { features } : void 0;
|
|
807
|
-
|
|
807
|
+
void dockerMode;
|
|
808
|
+
const idmapSuffix = "";
|
|
808
809
|
const homeMounts = [];
|
|
809
810
|
for (const f of resolvedFeatures) {
|
|
810
811
|
const allSubs = [
|
|
@@ -832,9 +833,7 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
|
|
|
832
833
|
}
|
|
833
834
|
const mounts = [...homeMounts];
|
|
834
835
|
const mountsField = mounts.length > 0 ? { mounts } : {};
|
|
835
|
-
const workspaceMountField =
|
|
836
|
-
workspaceMount: `source=\${localWorkspaceFolder},target=/workspaces/${opts.name},type=bind${idmapSuffix}`
|
|
837
|
-
} : {};
|
|
836
|
+
const workspaceMountField = {};
|
|
838
837
|
return {
|
|
839
838
|
name: opts.name,
|
|
840
839
|
image: BASE_IMAGE,
|
|
@@ -848,24 +847,15 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
|
|
|
848
847
|
};
|
|
849
848
|
}
|
|
850
849
|
function buildComposeYaml(opts, dockerMode = "rootful") {
|
|
850
|
+
void dockerMode;
|
|
851
851
|
const lines = ["services:"];
|
|
852
|
-
const isRootless = dockerMode === "rootless";
|
|
853
852
|
lines.push(" workspace:");
|
|
854
853
|
lines.push(` image: ${BASE_IMAGE}`);
|
|
855
854
|
lines.push(" command: 'sleep infinity'");
|
|
856
855
|
lines.push(" cap_add:");
|
|
857
856
|
lines.push(" - NET_ADMIN");
|
|
858
857
|
lines.push(" volumes:");
|
|
859
|
-
|
|
860
|
-
lines.push(" - type: bind");
|
|
861
|
-
lines.push(" source: ..");
|
|
862
|
-
lines.push(` target: /workspaces/${opts.name}`);
|
|
863
|
-
lines.push(" bind:");
|
|
864
|
-
lines.push(" create_host_path: true");
|
|
865
|
-
lines.push(" idmap: true");
|
|
866
|
-
} else {
|
|
867
|
-
lines.push(` - ..:/workspaces/${opts.name}:cached`);
|
|
868
|
-
}
|
|
858
|
+
lines.push(` - ..:/workspaces/${opts.name}:cached`);
|
|
869
859
|
const resolvedFeatures = resolveFeatures(opts);
|
|
870
860
|
for (const f of resolvedFeatures) {
|
|
871
861
|
const allSubs = [
|
|
@@ -873,16 +863,7 @@ function buildComposeYaml(opts, dockerMode = "rootful") {
|
|
|
873
863
|
...f.persistentHomeFiles.map((entry2) => entry2.path)
|
|
874
864
|
];
|
|
875
865
|
for (const sub of allSubs) {
|
|
876
|
-
|
|
877
|
-
lines.push(" - type: bind");
|
|
878
|
-
lines.push(` source: ../home/${sub}`);
|
|
879
|
-
lines.push(` target: /home/node/${sub}`);
|
|
880
|
-
lines.push(" bind:");
|
|
881
|
-
lines.push(" create_host_path: true");
|
|
882
|
-
lines.push(" idmap: true");
|
|
883
|
-
} else {
|
|
884
|
-
lines.push(` - ../home/${sub}:/home/node/${sub}`);
|
|
885
|
-
}
|
|
866
|
+
lines.push(` - ../home/${sub}:/home/node/${sub}`);
|
|
886
867
|
}
|
|
887
868
|
}
|
|
888
869
|
for (const svcId of opts.services) {
|
|
@@ -2274,6 +2255,7 @@ function providerSetupHint(host, provider) {
|
|
|
2274
2255
|
const install = installCommandForOS({
|
|
2275
2256
|
brew: "brew install gh",
|
|
2276
2257
|
winget: "winget install --id GitHub.cli",
|
|
2258
|
+
linuxBrew: "brew install gh",
|
|
2277
2259
|
linuxDocsUrl: "https://github.com/cli/cli#installation"
|
|
2278
2260
|
});
|
|
2279
2261
|
return {
|
|
@@ -2939,7 +2921,7 @@ function warnOnDeprecatedFeatureRefs(containerFeatures, globalConfig, logger) {
|
|
|
2939
2921
|
}
|
|
2940
2922
|
|
|
2941
2923
|
// src/version.ts
|
|
2942
|
-
var CLI_VERSION = true ? "1.6.
|
|
2924
|
+
var CLI_VERSION = true ? "1.6.7" : "dev";
|
|
2943
2925
|
|
|
2944
2926
|
// src/commands/_dispatch.ts
|
|
2945
2927
|
import { consola as consola11 } from "consola";
|