Skip to content

Commit

Permalink
chore: injected dependencies, one dependency per line (#33)
Browse files Browse the repository at this point in the history
Reformat pipx inject command to have one dependency
per line so that changes can be tracked easier.
  • Loading branch information
manusa authored Oct 3, 2024
1 parent 6d404f1 commit 154afa7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ const installPythonDependencies = () => {
);
};

const injectingRequiredPipPackages = () => {
const injectRequiredPipPackages = () => {
core.info("Injecting required PiP modules...");
child_process.execSync('PIPX_BIN_DIR=/usr/local/bin pipx inject cekit pip wheel odcs docker docker_squash behave lxml', {stdio: 'inherit'});
child_process.execSync(`PIPX_BIN_DIR=/usr/local/bin pipx inject cekit \\
pip \\
wheel \\
odcs \\
docker \\
docker_squash \\
behave \\
lxml \\
`, {stdio: 'inherit'});
};

const install = inputs => {
Expand All @@ -27,7 +35,7 @@ const install = inputs => {
cekitInstallCommand = `PIPX_BIN_DIR=/usr/local/bin pipx install cekit==${inputs.version}`;
}
child_process.execSync(cekitInstallCommand, {stdio: 'inherit'});
injectingRequiredPipPackages();
injectRequiredPipPackages();
core.addPath('/home/runner/.local/bin');
const pythonVersion = child_process
.execSync(`python --version`)
Expand Down

0 comments on commit 154afa7

Please sign in to comment.