gitlab-ci-local 4.68.0 → 4.68.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.
package/dist/index.js CHANGED
@@ -325,8 +325,8 @@ More commit text`,CI_COMMIT_DESCRIPTION:"More commit text",CI_DEFAULT_BRANCH:u.b
325
325
  `))this.stderrLines.push(this.currentStderr.slice(0,-1)),this.currentStderr=""}stdout(u){if(this.currentStdout+=u,u.endsWith(`
326
326
  `))this.stdoutLines.push(this.currentStdout.slice(0,-1)),this.currentStdout=""}flush(){if(this.currentStdout.length!=0)this.stdout(`
327
327
  `);if(this.currentStderr.length!=0)this.stderr(`
328
- `)}}import{AssertionError as w5u}from"assert";var yP={type:"module",name:"gitlab-ci-local",description:"Tired of pushing to test your .gitlab-ci.yml?",main:"dist/index.js",bin:"dist/index.js",version:"4.68.0",scripts:{build:"bun build --compile --minify --sourcemap src/index.ts --outfile bin/gitlab-ci-local","build:linux-amd64":"bun build --compile --minify --sourcemap --target=bun-linux-x64-baseline src/index.ts --outfile bin/linux-amd64/gitlab-ci-local","build:linux-arm64":"bun build --compile --minify --sourcemap --target=bun-linux-arm64 src/index.ts --outfile bin/linux-arm64/gitlab-ci-local","build:macos-x64":"bun build --compile --minify --sourcemap --target=bun-darwin-x64-baseline src/index.ts --outfile bin/macos-x64/gitlab-ci-local","build:macos-arm64":"bun build --compile --minify --sourcemap --target=bun-darwin-arm64 src/index.ts --outfile bin/macos-arm64/gitlab-ci-local","build:win":"bun build --compile --minify --sourcemap --target=bun-windows-x64-baseline src/index.ts --outfile bin/win/gitlab-ci-local.exe","build:node":"bun build --minify --sourcemap=linked src/index.ts --outdir dist --target=node","build-all":"bun run build:linux-amd64 && bun run build:linux-arm64 && bun run build:win && bun run build:macos-x64 && bun run build:macos-arm64","check-all":"bun run lint && bun run coverage",lint:"eslint .",test:"vitest run","test-except-dind":"vitest run --exclude '**/dind-*/**'",coverage:"vitest run --coverage",start:"bun src/index.ts --cwd examples/docker-compose-nodejs",typecheck:"tsc --noEmit","fetch-schema":"curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf > src/schema.json"},dependencies:{ajv:"8.x.x",axios:"1.x.x",base64url:"3.x.x",camelcase:"9.x.x",chalk:"5.x.x","chalk-template":"1.x.x",checksum:"1.x.x","deep-extend":"0.6.x",dotenv:"17.x",execa:"5.x.x","fs-extra":"11.x.x",globby:"16.x.x","js-yaml":"4.x.x",jsonpointer:"5.x.x",micromatch:"4.x.x","object-traversal":"1.x.x","p-map":"7.x.x","pretty-hrtime":"1.x.x",re2js:"1.x.x",semver:"7.x.x",split2:"4.x.x","terminal-link":"5.x.x",yargs:"18.x"},devDependencies:{"@eslint/js":"10.x","@stylistic/eslint-plugin":"5.x","@types/base64url":"2.x.x","@types/bun":"1.x.x","@types/checksum":"0.1.x","@types/deep-extend":"0.6.x","@types/fs-extra":"11.x.x","@types/js-yaml":"4.x.x","@types/micromatch":"4.x.x","@types/pretty-hrtime":"1.x.x","@types/semver":"7.x.x","@types/split2":"4.x.x","@types/yargs":"17.x.x","@vitest/coverage-v8":"^4.0.18","axios-mock-adapter":"2.x",depcheck:"1.x.x",eslint:"10.x",typescript:"5.x.x","typescript-eslint":"8.x.x",vitest:"^4.0.18"},repository:{type:"git",url:"https://github.com/firecow/gitlab-ci-local.git"},author:"Mads Jon Nielsen <madsjon@gmail.com>",license:"MIT",bugs:{url:"https://github.com/firecow/gitlab-ci-local/issues"},homepage:"https://github.com/firecow/gitlab-ci-local#readme",keywords:["git","gitlab","pipeline","local","ci","cd","push","untracked","uncomitted","gitlab-ci"],files:["dist/index.js","dist/index.js.map"]};var L3=[],q9=null;async function M3(u){if(q9)return q9;return q9=F7(L3).finally(()=>process.exit(u)),q9}process.on("SIGINT",()=>M3(130));process.on("SIGTERM",()=>M3(143));process.on("SIGHUP",()=>M3(129));process.on("SIGUSR2",async()=>{if(!q9)await F7(L3)});(()=>{let u=P9(process.argv.slice(2));u.parserConfiguration({"greedy-arrays":!1}).showHelpOnFail(!1).version(yP.version).wrap(u.terminalWidth?.()).command({handler:async(D)=>{try{await mF(D,new Jq,L3);let F=cD.getFailed(L3);process.exit(F.length>0?1:0)}catch(F){if(F instanceof w5u)process.stderr.write(b`{red ${F.message.trim()}}\n`);else if(F instanceof AggregateError)F.errors.forEach(($)=>process.stderr.write(b`{red ${$.stack??$}}\n`));else process.stderr.write(b`{red ${F.stack??F}}\n`);await M3(1)}},builder:(D)=>{return D.positional("job",{describe:"Jobname's to execute",type:"string"}).coerce("job",(F)=>{if(!Array.isArray(F))return[F];return F})},command:"$0 [job..]",describe:"Runs the entire pipeline or job's"}).usage(`Find more information at https://github.com/firecow/gitlab-ci-local.
328
+ `)}}import{AssertionError as w5u}from"assert";var yP={type:"module",name:"gitlab-ci-local",description:"Tired of pushing to test your .gitlab-ci.yml?",main:"dist/index.js",bin:"dist/index.js",version:"4.68.1",scripts:{build:"bun build --compile --minify --sourcemap src/index.ts --outfile bin/gitlab-ci-local","build:linux-amd64":"bun build --compile --minify --sourcemap --target=bun-linux-x64-baseline src/index.ts --outfile bin/linux-amd64/gitlab-ci-local","build:linux-arm64":"bun build --compile --minify --sourcemap --target=bun-linux-arm64 src/index.ts --outfile bin/linux-arm64/gitlab-ci-local","build:macos-x64":"bun build --compile --minify --sourcemap --target=bun-darwin-x64-baseline src/index.ts --outfile bin/macos-x64/gitlab-ci-local","build:macos-arm64":"bun build --compile --minify --sourcemap --target=bun-darwin-arm64 src/index.ts --outfile bin/macos-arm64/gitlab-ci-local","build:win":"bun build --compile --minify --sourcemap --target=bun-windows-x64-baseline src/index.ts --outfile bin/win/gitlab-ci-local.exe","build:node":"bun build --minify --sourcemap=linked src/index.ts --outdir dist --target=node","build-all":"bun run build:linux-amd64 && bun run build:linux-arm64 && bun run build:win && bun run build:macos-x64 && bun run build:macos-arm64","check-all":"bun run lint && bun run coverage",lint:"eslint .",test:"vitest run","test-except-dind":"vitest run --exclude '**/dind-*/**'",coverage:"vitest run --coverage",start:"bun src/index.ts --cwd examples/docker-compose-nodejs",typecheck:"tsc --noEmit","fetch-schema":"curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf > src/schema.json"},dependencies:{ajv:"8.x.x",axios:"1.x.x",base64url:"3.x.x",camelcase:"9.x.x",chalk:"5.x.x","chalk-template":"1.x.x",checksum:"1.x.x","deep-extend":"0.6.x",dotenv:"17.x",execa:"5.x.x","fs-extra":"11.x.x",globby:"16.x.x","js-yaml":"4.x.x",jsonpointer:"5.x.x",micromatch:"4.x.x","object-traversal":"1.x.x","p-map":"7.x.x","pretty-hrtime":"1.x.x",re2js:"1.x.x",semver:"7.x.x",split2:"4.x.x","terminal-link":"5.x.x",yargs:"18.x"},devDependencies:{"@eslint/js":"10.x","@stylistic/eslint-plugin":"5.x","@types/base64url":"2.x.x","@types/bun":"1.x.x","@types/checksum":"0.1.x","@types/deep-extend":"0.6.x","@types/fs-extra":"11.x.x","@types/js-yaml":"4.x.x","@types/micromatch":"4.x.x","@types/pretty-hrtime":"1.x.x","@types/semver":"7.x.x","@types/split2":"4.x.x","@types/yargs":"17.x.x","@vitest/coverage-v8":"^4.0.18","axios-mock-adapter":"2.x",depcheck:"1.x.x",eslint:"10.x",typescript:"5.x.x","typescript-eslint":"8.x.x",vitest:"^4.0.18"},repository:{type:"git",url:"https://github.com/firecow/gitlab-ci-local.git"},author:"Mads Jon Nielsen <madsjon@gmail.com>",license:"MIT",bugs:{url:"https://github.com/firecow/gitlab-ci-local/issues"},homepage:"https://github.com/firecow/gitlab-ci-local#readme",keywords:["git","gitlab","pipeline","local","ci","cd","push","untracked","uncomitted","gitlab-ci"],files:["dist/index.js","dist/index.js.map"]};var L3=[],q9=null;async function M3(u){if(q9)return q9;return q9=F7(L3).finally(()=>process.exit(u)),q9}process.on("SIGINT",()=>M3(130));process.on("SIGTERM",()=>M3(143));process.on("SIGHUP",()=>M3(129));process.on("SIGUSR2",async()=>{if(!q9)await F7(L3)});(()=>{let u=P9(process.argv.slice(2));u.parserConfiguration({"greedy-arrays":!1}).showHelpOnFail(!1).version(yP.version).wrap(u.terminalWidth?.()).command({handler:async(D)=>{try{await mF(D,new Jq,L3);let F=cD.getFailed(L3);process.exit(F.length>0?1:0)}catch(F){if(F instanceof w5u)process.stderr.write(b`{red ${F.message.trim()}}\n`);else if(F instanceof AggregateError)F.errors.forEach(($)=>process.stderr.write(b`{red ${$.stack??$}}\n`));else process.stderr.write(b`{red ${F.stack??F}}\n`);await M3(1)}},builder:(D)=>{return D.positional("job",{describe:"Jobname's to execute",type:"string"}).coerce("job",(F)=>{if(!Array.isArray(F))return[F];return F})},command:"$0 [job..]",describe:"Runs the entire pipeline or job's"}).usage(`Find more information at https://github.com/firecow/gitlab-ci-local.
329
329
  Note: To negate an option use '--no-(option)'.`).strictOptions().env("GCL").option("manual",{type:"array",description:"One or more manual jobs to run during a pipeline",requiresArg:!0}).option("list",{type:"boolean",description:"List job information, when:never excluded",requiresArg:!1}).option("list-all",{type:"boolean",description:"List job information, when:never included",requiresArg:!1}).option("list-json",{type:"boolean",description:"List job information in json format, when:never included",requiresArg:!1}).option("list-csv",{type:"boolean",description:"List job information in csv format, when:never excluded",requiresArg:!1}).option("list-csv-all",{type:"boolean",description:"List job information in csv format, when:never included",requiresArg:!1}).option("validate-dependency-chain",{type:"boolean",description:"Validate that jobs needed or dependent by active jobs under specified conditions are also active without actually running the jobs. Uses fail-fast approach - stops at first validation error for both 'needs' and 'dependencies' keywords. If validation fails, use --list flag to see which jobs will run under specified conditions",requiresArg:!1}).option("preview",{type:"boolean",description:"Print YML with defaults, includes, extends and reference's expanded",requiresArg:!1}).option("cwd",{type:"string",description:"Path to a current working directory",requiresArg:!0}).option("variables-file",{type:"string",description:"Path to the project file variables",requiresArg:!0,default:aD.default.variablesFile}).option("completion",{type:"boolean",description:"Generate tab completion script",requiresArg:!1}).option("evaluate-rule-changes",{type:"boolean",description:"Whether to evaluate rule:changes. If set to false, rules:changes will always evaluate to true",requiresArg:!1,default:aD.default.evaluateRuleChanges}).option("needs",{type:"boolean",description:"Run needed jobs, when executing specific jobs",requiresArg:!1}).option("only-needs",{type:"boolean",description:"Run needed jobs, except the specified jobs themselves",requiresArg:!1}).option("stage",{type:"string",description:"Run all jobs in a specific stage",requiresArg:!1}).option("variable",{type:"array",description:"Add variable to all executed jobs (--variable HELLO=world)",requiresArg:!1}).option("unset-variable",{type:"array",description:"Unsets a variable (--unset-variable HELLO)",requiresArg:!1}).option("remote-variables",{type:"array",description:"Fetch variables file from remote location",requiresArg:!1}).option("state-dir",{type:"string",description:"Location of the .gitlab-ci-local state dir, relative to cwd, eg. (symfony/.gitlab-ci-local/)",requiresArg:!1}).option("file",{type:"string",description:"Location of the .gitlab-ci.yml, relative to cwd, eg. (gitlab/.gitlab-ci.yml)",requiresArg:!1}).option("home",{type:"string",description:"Location of the HOME .gitlab-ci-local folder ($HOME/.gitlab-ci-local/variables.yml)",requiresArg:!1}).option("shell-isolation",{type:"boolean",description:"Enable artifact isolation for shell-executor jobs",requiresArg:!1}).option("force-shell-executor",{type:"boolean",description:"Forces all jobs to be executed using the shell executor. (Only use this option for trusted job)",requiresArg:!1}).option("shell-executor-no-image",{type:"boolean",description:"Whether to use shell executor when no image is specified.",requiresArg:!1}).option("default-image",{type:"string",description:"When using --shell-executor-no-image=false which image to be used for the container. Defaults to docker.io/ruby:3.1 if not set.",requiresArg:!1}).option("wait-image",{type:"string",description:"Which image to be used for the wait container. Defaults to docker.io/sumina46/wait-for-it:latest if not set.",requiresArg:!1}).option("helper-image",{type:"string",description:"When using --shell-executor-no-image=false which image to be used for the utils container. Defaults to docker.io/firecow/gitlab-ci-local-util:latest if not set.",requiresArg:!1}).option("mount-cache",{type:"boolean",description:"Enable docker mount based caching",requiresArg:!1}).option("umask",{type:"boolean",description:"Sets docker user to 0:0",requiresArg:!1}).option("userns",{type:"string",description:"Set docker executor userns option",requiresArg:!1}).option("privileged",{type:"boolean",description:"Set docker executor to privileged mode",requiresArg:!1}).option("device",{type:"array",description:"Add devices to docker executor",requiresArg:!1}).option("ulimit",{type:"number",description:"Set docker executor ulimit",requiresArg:!1}).option("shm-size",{type:"string",description:"Set docker executor shared memory size, docker default is 64m (e.g., '256m', '1g')",requiresArg:!1}).option("network",{type:"array",description:"Add networks to docker executor",requiresArg:!1}).option("volume",{type:"array",description:"Add volumes to docker executor",requiresArg:!1}).option("extra-host",{type:"array",description:"Add extra docker host entries",requiresArg:!1}).option("ca-file",{type:"string",description:"Path to custom CA certificate file to mount in containers",requiresArg:!1}).option("pull-policy",{type:"string",description:"Set image pull-policy (always or if-not-present)",requiresArg:!1}).option("fetch-includes",{type:"boolean",description:"Fetch all external includes one more time",requiresArg:!1}).option("maximum-includes",{type:"number",description:"The maximum number of includes",requiresArg:!1}).option("artifacts-to-source",{type:"boolean",description:"Copy the generated artifacts into cwd",requiresArg:!1}).option("cleanup",{type:"boolean",description:"Remove docker resources after they've been used",requiresArg:!1}).option("quiet",{type:"boolean",description:"Suppress all job output",requiresArg:!1}).option("timestamps",{type:"boolean",description:"Show timestamps and job duration in the logs",requiresArg:!1}).option("max-job-name-padding",{type:"number",description:"Maximum padding for job name (use <= 0 for no padding)",requiresArg:!1}).option("json-schema-validation",{type:"boolean",description:"Whether to enable json schema validation",requiresArg:!1}).option("ignore-schema-paths",{type:"array",requiresArg:!1,default:aD.default.ignoreSchemaPaths,description:"The json schema paths that will be ignored"}).option("ignore-predefined-vars",{type:"string",coerce:(D)=>D.split(","),requiresArg:!1,default:aD.default.ignorePredefinedVars,describe:"Comma-seperated list of predefined pipeline variables for which warnings should be suppressed"}).option("concurrency",{type:"number",description:"Limit the number of jobs that run simultaneously",requiresArg:!1}).option("container-executable",{type:"string",description:"Command to start the container engine (docker or podman)",requiresArg:!1}).option("container-mac-address",{type:"string",description:"Container MAC address (e.g., aa:bb:cc:dd:ee:ff)",requiresArg:!1}).option("container-emulate",{type:"string",description:"The name, without the architecture, of a gitlab hosted runner to emulate. See here: https://docs.gitlab.com/ee/ci/runners/hosted_runners/linux.html#machine-types-available-for-linux---x86-64",choices:kF}).option("color",{requiresArg:!1,default:!0,description:"Enables color"}).option("registry",{type:"boolean",requiresArg:!1,description:"Start a local docker registry and configure gitlab-ci-local containers to use that by default"}).completion("completion",!1,(D,F,$,z)=>{try{if(D.startsWith("-"))$();else aD.build({...F,autoCompleting:!0}).then((Z)=>D1(Z.cwd,Z.stateDir).then((B)=>({argv:Z,pipelineIid:B}))).then(({argv:Z,pipelineIid:B})=>tu.create(Z,new Gq,B,[])).then((Z)=>{let B=[...Z.jobs.values()].filter((q)=>q.when!="never").map((q)=>q.name);z(B)})}catch{return["Parser-Failed!"]}}).parse()})();
330
330
 
331
- //# debugId=F330C87CF22E086F64756E2164756E21
331
+ //# debugId=920FDA8C870924C664756E2164756E21
332
332
  //# sourceMappingURL=index.js.map