Skip to content
Snippets Groups Projects
Commit ed331d4d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(bundler): better constraint logging for artifacts

parent 23e254ee
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,18 @@ export async function updateArtifacts(
const cmd = `bundle lock --update ${updatedDeps.join(' ')}`;
let bundlerVersion = '';
const { bundler } = compatibility;
const bundlerVersion = bundler && isValid(bundler) ? ` -v ${bundler}` : '';
if (bundler) {
if (isValid(bundler)) {
logger.debug({ bundlerVersion: bundler }, 'Found bundler version');
bundlerVersion = ` -v ${bundler}`;
} else {
logger.warn({ bundlerVersion: bundler }, 'Invalid bundler version');
}
} else {
logger.debug('No bundler version constraint found - will use latest');
}
const preCommands = [
'ruby --version',
`gem install bundler${bundlerVersion} --no-document`,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment