-
Notifications
You must be signed in to change notification settings - Fork 382
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
(nuget.commandline) AU updater #682
Conversation
@@ -0,0 +1,27 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<!-- Do not remove this test for UTF-8: if “Ω†doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you got alot of bogus characters here.
Please replace them with “Ω”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They pile up after few forced updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you haven't fixed the character after I submitted majkinetor/au#63, then that would be expected.
If you remove them and replace it with the omega character, then it shouldn't continue to pile up like that.
</description> | ||
<projectUrl>https://github.com/NuGet/NuGet.Client</projectUrl> | ||
<tags>nuget dot.net microsoft foss cross-platform</tags> | ||
<copyright>© .NET Foundation. All rights reserved.</copyright> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you really mean to have the Â
character here?
AU does that. I think after majkinetor/au#60 I dont understand why. Inever got to the point where encoding behaves correctly, there is always someone who complains... |
@majkinetor yes that's when it started to happen, but it shouldn't anymore (as long as the bogus characters are fixed before the next update). Basically it happened because the character was read as an ANSI character (although it's utf-8) and then converted to UTF-8 BOM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I am not sure I can confirm that. But will take another look. |
If you try to run |
Looks like appveyor check works great BTW. One thing I noticed, screenshots are black. |
Hmm, I'll need to look into that. Seems like there is some incompatibilities between the vs2015 and WMF 5 image. |
Not that it is terribly important IMO. Its probably equally effective to just return desktop content as an artifact - will show up links and anything new added. Screenshots might come in handy with a more robust check procedure - i.e. starting the GUI programs after install to see if they show up window. This could be added too , perhaps as as a directive to AV or something. Perhaps as a new PS1 script ( |
@majkinetor although not terribly important, the purpose of the screenshots is to see if a program is started after the install, or is hanging on the uninstall, etc. |
I've disabled the screenshots until I can find a working way with the WMF 5 image. |
Something is wrong now that this got merged. During branch testing everything was fine. There is nothing in au temp folder which is very strange. Only this in build log:
And this in info: PS> Import-Clixml .\update_info.xml | % result | % errors
Path : C:\projects\chocolatey-coreteampackages\automatic\nuget.commandline
Name : nuget.commandline
Updated : False
Pushed : False
RemoteVersion :
NuspecVersion : 0
Result :
Error : Job returned no object, Vector smash ?
NuspecPath : C:\projects\chocolatey-coreteampackages\automatic\nuget.commandline\nuget.commandline.nuspec
NuspecXml : #document Do you spot anything unusual ? |
@majkinetor ah damn, I missed that. |
I'll update the script mentioning how to skip the icon check for a package in the error message |
OK, so it was responsible for this behavior ? I'll add a comment since there is no icon. BTW
Maybe it would not be bad to actually see report on branch au test ? We could create a new gist for that and set a link in main report via |
Should it be a single comment anywhwere, or inside existing comment or what ? |
it doesn't matter if it's in a single comment or not. It actually don't even need to be inside a comment. |
I was sure that nuget had an icon though. |
perhaps reuse the icon that was used when we tested out using |
Perhaps you can add an error to info object on particular package when you fail iconurl check, then it will be visible in the report. |
Sure, I'll look into doing that. |
I think if you return AUPackage object and set pkg.Error it will show. I am not sure if you can actually create an object, perhaps I need to expose it as a public builder function, you will have to try it.
|
Hm... not even that will work, the routine will return that package only if it goes to the end. I will see how can I change AU to allow for before and after each scripts to to this. So postpone your work until majkinetor/au#73 gets implemented. |
👍 will do, hadn't started yet as the food was just ready. but what about, perhaps catching thrown errors in AU? |
Yeah will see to do that, but perhaps access to the AUPackage is still desirable because as scripts could add arbitrary text in results array that will show in report |
yeah, I think that would be fine as well. |
For @ferventcoder
closes #681
au_GetLatest
is generic, can work with any package, just change the$packageName
.