Skip to content

CUT-4711-Nuspec-Path-Bug-Fix#677

Merged
kmaranionjc merged 2 commits into
masterfrom
CUT-4711-Nuspec-Path-Bug-Fix
Apr 25, 2025
Merged

CUT-4711-Nuspec-Path-Bug-Fix#677
kmaranionjc merged 2 commits into
masterfrom
CUT-4711-Nuspec-Path-Bug-Fix

Conversation

@kmaranionjc
Copy link
Copy Markdown
Contributor

Issues

  • [CUT-4711(https://jumpcloud.atlassian.net/browse/CUT-4711) - CUT-4711-Nuspec-Path-Bug-Fix

What does this solve?

The latest release of our workflow runner, when transitioning from Linux to Windows for Nuspec builds, has introduced a bug. This bug results in an incorrect directory structure for the Public, Private, and en-Us folders, where extra path information is included ex. Private\Private\Association instead of Private\Association. The problem is caused by the use of Linux-style forward slashes (/) instead of Windows-style backslashes (\) in the directory paths. Correcting these path separators resolves the issue.

How should this be tested?

  1. Build nuspec: . /Users/YOURUSER/Documents/GitHub/support/PowerShell/Deploy/BuildNuspecFromPsd1.ps1
  2. Open the built nuspec file using the Nuget Package Explorer
  3. Directory should like this:
    image

Screenshots

@kmaranionjc kmaranionjc requested a review from a team as a code owner April 25, 2025 19:34
@kmaranionjc kmaranionjc self-assigned this Apr 25, 2025
@kmaranionjc kmaranionjc added manual manual module release (specify version in psd1) PowerShell Module Release for JumpCloud PowerShell Module labels Apr 25, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes an issue where incorrect Windows path separators caused erroneous directory structures in nuspec builds when transitioning from Linux.

  • Updated the changelog with version 2.18.1 details and release notes describing the bug fix.
  • Updated the JumpCloud documentation to reflect the new Help Version 2.18.1.

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
PowerShell/ModuleChangelog.md Added changelog entries for version 2.18.1 with bug fix info.
PowerShell/JumpCloud Module/Docs/JumpCloud.md Updated the Help Version from 2.18.0 to 2.18.1.
Files not reviewed (2)
  • PowerShell/Deploy/BuildNuspecFromPsd1.ps1: Language not supported
  • PowerShell/JumpCloud Module/JumpCloud.psd1: Language not supported

@kmaranionjc kmaranionjc requested a review from tonybjc April 25, 2025 20:34
Copy link
Copy Markdown

@tonybjc tonybjc left a comment

Choose a reason for hiding this comment

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

Just a swap of back/forward slashes, looks good. Approved.

@kmaranionjc kmaranionjc merged commit d6b4be0 into master Apr 25, 2025
10 checks passed
@kmaranionjc kmaranionjc deleted the CUT-4711-Nuspec-Path-Bug-Fix branch April 25, 2025 20:44
@kmaranionjc kmaranionjc temporarily deployed to PublishToPSGallery April 25, 2025 20:45 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual manual module release (specify version in psd1) PowerShell Module Release for JumpCloud PowerShell Module

Development

Successfully merging this pull request may close these issues.

4 participants