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

Fixes for Windows compatibility (backpatch to 3.7.x) #387

Merged
merged 3 commits into from
Aug 26, 2022

Conversation

evanweible-wf
Copy link
Contributor

@evanweible-wf evanweible-wf commented Aug 18, 2022

There are several paths that we're using in our executable and in the run script that we generate and we need to construct them with the appropriate APIs from package:path to ensure they work when running on Windows. This PR does that.

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@evanweible-wf evanweible-wf changed the title Use join() from package:path for Windows compatibility (backpatch to 3.7.x) Fixes for Windows compatibility (backpatch to 3.7.x) Aug 26, 2022
@evanweible-wf evanweible-wf marked this pull request as ready for review August 26, 2022 20:35

test('configFromRunScriptForDart', () {
expect(paths.configFromRunScriptForDart,
r'../../tool/dart_dev/config.dart');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the path separators for a relative path really not backslashes in windows? If so, how inconsistent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out this is a path that will be used as an import in a .dart file. Dart always uses forward slashes regardless of the platform. So, nothing to do here.

@evanweible-wf
Copy link
Contributor Author

QA +1

@Workiva/release-management-p

Copy link
Contributor

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit 61208df into 3.7.x Aug 26, 2022
@rmconsole2-wf rmconsole2-wf deleted the fix_paths_for_windows__backpatch_3.7 branch August 26, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants