-
Notifications
You must be signed in to change notification settings - Fork 102
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
Also search %PATH% for sqlpackage.exe #814
Also search %PATH% for sqlpackage.exe #814
Conversation
The installation documentation for SqlPackage says: Installing SqlPackage as a global tool makes it available on your path as sqlpackage and is the recommended method to install SqlPackage for Windows, macOS, and Linux. In line with Microsoft's expectations, also search %PATH% if sqlpackage is not found in the d365fo.tools default path ($Script:SqlPackagePath). If it is found in the %PATH% then update the default path with the actual path to sqlpackage.exe. Author: Colin Daley Date: 2024-03-24
The failure is The failure was detected by this line: However, I do not see any trailing spaces in invoke-sqlpackage.ps1. It has a blank line at the top, but other scripts in the same folder have a blank line at the top. |
Thanks for the contribution. Let me take a look at the checks. You can also try to run the d365fo.tools-Generate-Text action in your fork against the invoke_sqlpackage_fix branch. If it finds any issues that can be fixed by the action, it will create a new pull request in your fork. When that pr gets merged to the invoke_sqlpackage_fix branch, it should kick off another run of the checks. |
The message you found in the check log actually lists the line numbers with trailing whitespace. I added comments with a fix suggestion to each line. Not sure why those trailing whitespaces did not appear for you.
@Splaxi Do you see any obstacles adding a script that cleans up trailing whitespace? |
My mistake. I was looking for blank lines at the end of the file. I will remove them when I get home from work. |
The message should have been "Remove trailing spaces from previous commit". |
Well, "leading" isn't wrong in this case, though a bit of unusual terminology 😄 Thanks again for contributing. |
The installation documentation for SqlPackage says: Installing SqlPackage as a global tool makes it available on your path as sqlpackage and is the recommended method to install SqlPackage for Windows, macOS, and Linux.
In line with Microsoft's expectations, also search %PATH% if sqlpackage is not found in the d365fo.tools default path ($Script:SqlPackagePath). If it is found in the %PATH% then update the default path with the actual path to sqlpackage.exe.
Author: Colin Daley
Date: 2024-03-24