Skip to content

Commit

Permalink
release v3.0.3 generated by @lando/prepare-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfm-47 committed Apr 10, 2024
1 parent f49b105 commit f968873
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 98 deletions.
77 changes: 10 additions & 67 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45756,25 +45756,21 @@ module.exports = (config = {}, pairs = []) => {
/***/ }),

/***/ 1215:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
/***/ ((module) => {

"use strict";


const {parseArgsStringToArgv} = __nccwpck_require__(9663);

module.exports = command => {
module.exports = (command, landoBin = 'lando') => {
// throw if not a string
if (typeof command !== 'string') throw new Error('Setup command must be a string!');
// parse string
command = parseArgsStringToArgv(command);
// validate a few things
if (command[0] !== 'lando' || command[1] !== 'setup') {
throw new Error(`Setup command must begin with "lando setup"! You tried to run "${command.join(' ')}"`);
if (!command.includes('lando setup')) {
throw new Error(`Setup command must include "lando setup"! You tried to run "${command}"`);
}
// remove first lando because we only care about the args
command.shift();
return command;

// return command but with lando invocations replaced with absolute paths to the landoBin
return command.replace(/lando /g, `${landoBin} `);
};


Expand Down Expand Up @@ -47728,59 +47724,6 @@ function parseParams (str) {
module.exports = parseParams


/***/ }),

/***/ 9663:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

exports.__esModule = true;
exports.parseArgsStringToArgv = void 0;
function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value;
var myArray = [];
if (env) {
myArray.push(env);
}
if (file) {
myArray.push(file);
}
var match;
do {
// Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString);
if (match !== null) {
// Index 1 in the array is the captured group if it exists
// Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0]));
}
} while (match !== null);
return myArray;
}
exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string
// (even an empty string)
function firstString() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
for (var i = 0; i < args.length; i++) {
var arg = args[i];
if (typeof arg === "string") {
return arg;
}
}
}


/***/ }),

/***/ 2020:
Expand Down Expand Up @@ -47835,7 +47778,7 @@ var __webpack_exports__ = {};
"use strict";


const SCRIPT_VERSION = 'v3.0.2';
const SCRIPT_VERSION = 'v3.0.3';

const core = __nccwpck_require__(2186);
const exec = __nccwpck_require__(1514);
Expand Down Expand Up @@ -48027,9 +47970,9 @@ const main = async () => {

// if we get here then we should be G2G
} else {
const args = parseSetupCommand(getSetupCommand(inputs.setup));
const command = parseSetupCommand(getSetupCommand(inputs.setup), landoPath);
const opts = {env: {...process.env, LANDO_DEBUG: core.isDebug() || inputs.debug}};
await exec.exec(landoPath, args, opts);
await exec.exec('bash', ['-c', command], opts);
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions dist/licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -746,31 +746,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.


string-argv
MIT
The MIT License (MIT)

Copyright 2014 Anthony McCormick

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


tr46
MIT

Expand Down
4 changes: 2 additions & 2 deletions dist/setup-lando.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ const main = async () => {

// if we get here then we should be G2G
} else {
const args = parseSetupCommand(getSetupCommand(inputs.setup));
const command = parseSetupCommand(getSetupCommand(inputs.setup), landoPath);
const opts = {env: {...process.env, LANDO_DEBUG: core.isDebug() || inputs.debug}};
await exec.exec(landoPath, args, opts);
await exec.exec('bash', ['-c', command], opts);
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/setup-lando.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCRIPT_VERSION="v3.0.2"
SCRIPT_VERSION="v3.0.3"
#!/bin/bash
set -u
# Lando POSIX setup script.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lando/setup-lando",
"description": "GitHub Action to setup Lando on GitHub Actions.",
"version": "3.0.2",
"version": "3.0.3",
"author": "Mike Pirog @pirog",
"main": "setup-lando.js",
"license": "GPL-3.0",
Expand Down

0 comments on commit f968873

Please sign in to comment.