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

Correct Erroring Default Variable Assignments on Systems with unique file paths #1387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

buidav
Copy link
Collaborator

@buidav buidav commented Oct 30, 2024

🗣 Description

  • Make DefaultOutPath work on UNC file systems.
  • Add a try catch to the DefaultOPAPath assignment.

💭 Motivation and context

Closes #1315
Closes #1369

🧪 Testing

  • Try to run Import-Module .\PowerShell\ScubaGear on a non-Windows system.
  • Try to run Import-Module .\PowerShell\ScubaGear on system using UNC file paths.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • PR targets the correct parent branch (e.g., main or release-name) for merge.
  • Changes are limited to a single related goals ;) - eschew scope creep!
  • Changes are sized such that they do not touch excessive number of files.
  • These code changes follow the ScubaGear content style guide.
  • Related issues these changes resolve are linked preferably via closing keywords.
  • All relevant type-of-change labels added.
  • All relevant project fields are set.
  • All relevant repo and/or project documentation updated to reflect these changes.
  • All relevant functional tests passed.
  • All automated checks (e.g., linting, static analysis, unit/smoke tests) passed.

✅ Pre-merge checklist

  • PR passed smoke test check.

  • Feature branch has been rebased against changes from parent branch, as needed

    Use Rebase branch button below or use this reference to rebase from the command line.

  • Resolved all merge conflicts on branch

  • Notified merge coordinator that PR is ready for merge via comment mention

✅ Post-merge checklist

  • Feature branch deleted after merge to clean up repository.
  • Verified that all checks pass on parent branch (e.g., main or release-name) after merge.

@buidav buidav added the bug This issue or pull request addresses broken functionality label Oct 30, 2024
@buidav buidav added this to the Kraken milestone Oct 30, 2024
@buidav buidav self-assigned this Oct 30, 2024
@adhilto adhilto requested a review from amart241 November 4, 2024 21:44
Copy link
Collaborator

@adhilto adhilto left a comment

Choose a reason for hiding this comment

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

Code changes look good. Tested on a Windows, changes don't break default behavior (as expected). Deferring to @amart241 to test on a Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
2 participants