Skip to content

Commit

Permalink
Support for bundle path
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 16, 2025
1 parent 3757d36 commit f6dd81a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
14 changes: 12 additions & 2 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5168,7 +5168,12 @@ export async function createRubyBom(path, options) {
let gemLockFiles = getAllFiles(
path,
`${options.multiProject ? "**/" : ""}Gemfile*.lock`,
options,
{
...options,
exclude: (options.exclude || []).concat([
"**/vendor/bundle/ruby/**/Gemfile.lock",
]),
},
);
let gemspecFiles = getAllFiles(
path,
Expand Down Expand Up @@ -5216,7 +5221,12 @@ export async function createRubyBom(path, options) {
gemLockFiles = getAllFiles(
path,
`${options.multiProject ? "**/" : ""}Gemfile*.lock`,
options,
{
...options,
exclude: (options.exclude || []).concat([
"**/vendor/bundle/ruby/**/Gemfile.lock",
]),
},
);
if (gemLockFiles.length) {
for (const f of gemLockFiles) {
Expand Down
1 change: 1 addition & 0 deletions lib/stages/pregen/pregen.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export function prepareRubyEnv(filePath, options) {
const rbenvPresent = isRbenvAvailable();
const cdxgenGemHome =
process.env.CDXGEN_GEM_HOME ||
process.env.BUNDLE_PATH ||
process.env.GEM_HOME ||
mkdtempSync(join(getTmpDir(), "cdxgen-gem-home-"));
process.env.CDXGEN_GEM_HOME = cdxgenGemHome;
Expand Down
2 changes: 1 addition & 1 deletion types/lib/cli/index.d.ts.map

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

2 changes: 1 addition & 1 deletion types/lib/stages/pregen/pregen.d.ts.map

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

0 comments on commit f6dd81a

Please sign in to comment.