Skip to content

Notice Generation Script - CR LF Correction#1298

Merged
seantleonard merged 3 commits intomainfrom
dev/seleonar/licenseCorrectionScript
Mar 2, 2023
Merged

Notice Generation Script - CR LF Correction#1298
seantleonard merged 3 commits intomainfrom
dev/seleonar/licenseCorrectionScript

Conversation

@seantleonard
Copy link
Contributor

@seantleonard seantleonard commented Mar 2, 2023

Why make this change?

  • Removes erroneous (c) Microsoft 2023 copyright from notice file with corrected detection of CR LF in the file generated, not just LF:

image

What is this change?

How was this tested?

  • CI/CD build task has desired output
    • Browsing the output of the build from CI/CD build page. (navigate from the Checks tab).
      Job/nupkg/Microsoft.DataApiBuilder..nupkg Nupkg contains NOTICE.txt with concatenated license. To validate nupkg, rename the downloaded file to use the file extension .zip, and then you can browse contents.
    • publish/Release/win-x64/dab/NOTICE.txt has expected license text
  • Local Test as described below:

local test

Add new directory with files
C:\Inputs

  • NOTICE.txt

Run powershell script: .\notice-generation.ps1 C:\Inputs C:\Inputs
param1: $BuildArtifactStagingDir (would be location to save the downloaded license)
param2: $BuildSourcesDir (would contain the notice.txt)

Copy link
Contributor

@aaronburtle aaronburtle left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fast fix!

@seantleonard seantleonard merged commit a962e48 into main Mar 2, 2023
@seantleonard seantleonard deleted the dev/seleonar/licenseCorrectionScript branch March 2, 2023 19:54
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.

3 participants