Skip to content

Commit 154afa7

Browse files
authored
chore: injected dependencies, one dependency per line (#33)
Reformat pipx inject command to have one dependency per line so that changes can be tracked easier.
1 parent 6d404f1 commit 154afa7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/install.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ const installPythonDependencies = () => {
1414
);
1515
};
1616

17-
const injectingRequiredPipPackages = () => {
17+
const injectRequiredPipPackages = () => {
1818
core.info("Injecting required PiP modules...");
19-
child_process.execSync('PIPX_BIN_DIR=/usr/local/bin pipx inject cekit pip wheel odcs docker docker_squash behave lxml', {stdio: 'inherit'});
19+
child_process.execSync(`PIPX_BIN_DIR=/usr/local/bin pipx inject cekit \\
20+
pip \\
21+
wheel \\
22+
odcs \\
23+
docker \\
24+
docker_squash \\
25+
behave \\
26+
lxml \\
27+
`, {stdio: 'inherit'});
2028
};
2129

2230
const install = inputs => {
@@ -27,7 +35,7 @@ const install = inputs => {
2735
cekitInstallCommand = `PIPX_BIN_DIR=/usr/local/bin pipx install cekit==${inputs.version}`;
2836
}
2937
child_process.execSync(cekitInstallCommand, {stdio: 'inherit'});
30-
injectingRequiredPipPackages();
38+
injectRequiredPipPackages();
3139
core.addPath('/home/runner/.local/bin');
3240
const pythonVersion = child_process
3341
.execSync(`python --version`)

0 commit comments

Comments
 (0)