Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: propertly create target file path for --file= with absolute path #2319

Merged

Conversation

maxjeffos
Copy link
Contributor

What does this PR do?

Uses .resolve rather than .join to compute the target file path when using --file=<absolute-path. This fixes the resolution of the .snyk file in these scenarios.

ZD 10425

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2021

Warnings
⚠️

Since the CLI is unifying on a standard and improved tooling, we're starting to migrate old-style imports and exports to ES6 ones.
A file you've modified is using either module.exports or require(). If you can, please update them to ES6 import syntax and export syntax.
Files found:

  • src/lib/snyk-test/run-test.ts

Generated by 🚫 dangerJS against 8f4f9c7

@maxjeffos maxjeffos force-pushed the fix/load-policy-file-with-file-equals-and-absolute-path branch from 5f623da to 5cba009 Compare October 23, 2021 14:43
@maxjeffos maxjeffos force-pushed the fix/load-policy-file-with-file-equals-and-absolute-path branch from 5cba009 to 8f4f9c7 Compare October 23, 2021 15:51
@maxjeffos maxjeffos merged commit 6014584 into master Oct 25, 2021
@maxjeffos maxjeffos deleted the fix/load-policy-file-with-file-equals-and-absolute-path branch October 25, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants