unoplatform / uno.check

CLI tool to setup your environment to build Uno Platform apps
https://platform.uno
30 stars 17 forks source link

Uno Check asks to update version #221

Closed carlh98 closed 10 months ago

carlh98 commented 10 months ago

Running in MS-Hosted Machine, Uno Check prompts the following even though we used --ci --fix --non-interactive

image

We only managed to not receive the prompt by either downgrading to 1.11.0 or using the latest at the time which was 1.17.0

jeromelaban commented 10 months ago

This should have been fixed. You can update to a later version (e.g. 1.18.0) to avoid this problem.

The CI parameter should be enough to avoid this message:

https://github.com/unoplatform/uno.check/blob/251e61153ef936748520ecbaa99e45e10970bab1/UnoCheck/CheckCommand.cs#L346-L349.

Can you provide the full log?

carlh98 commented 10 months ago
2023-12-22T21:31:53.5891489Z ##[section]Starting: Install .NET Workloads | Uno-check
2023-12-22T21:31:53.6009931Z ==============================================================================
2023-12-22T21:31:53.6010360Z Task         : PowerShell
2023-12-22T21:31:53.6010497Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2023-12-22T21:31:53.6010642Z Version      : 2.232.1
2023-12-22T21:31:53.6010813Z Author       : Microsoft Corporation
2023-12-22T21:31:53.6010971Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2023-12-22T21:31:53.6011165Z ==============================================================================
2023-12-22T21:31:55.1025304Z Generating script.
2023-12-22T21:31:55.1636016Z ========================== Starting Command Output ===========================
2023-12-22T21:31:55.1871780Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\66ed95d0-efef-4262-ac67-ed86e45c1823.ps1'"
2023-12-22T21:32:03.1185598Z You can invoke the tool using the following command: uno-check
2023-12-22T21:32:03.1188368Z Tool 'uno.check' (version '1.14.0') was successfully installed.
2023-12-22T21:32:03.3766342Z 
2023-12-22T21:32:03.3879161Z  
2023-12-22T21:32:03.3922897Z            ╓╣╜"╙╬╖
2023-12-22T21:32:03.3923975Z          ╓╣`     "╣╗
2023-12-22T21:32:03.3924815Z        ,@Ñ╜╩╬╗     ╙▒Ñ%,
2023-12-22T21:32:03.3925813Z      ╓╬╝     ]╣╦   ╓▓  ╙╣╖
2023-12-22T21:32:03.3927442Z     ╬╝     ,@╜  ╚@╬╜     ▒
2023-12-22T21:32:03.3929606Z     ╬╗   ,╣╜ ╝@╦╣`     ╓╣╜
2023-12-22T21:32:03.3931037Z      ╙╬╦ ▒     ╙@╖   ╓╣╜
2023-12-22T21:32:03.3932010Z         ╙╝@      "╙╣▒
2023-12-22T21:32:03.3932690Z            ╚h    ,@╝
2023-12-22T21:32:03.3933433Z              ╙Ñ@Ñ╜
2023-12-22T21:32:03.3934057Z  
2023-12-22T21:32:03.3940957Z  
2023-12-22T21:32:03.4037765Z                                          _                     _    
2023-12-22T21:32:03.4038603Z   _   _   _ __     ___             ___  | |__     ___    ___  | | __
2023-12-22T21:32:03.4039390Z  | | | | | '_ \   / _ \   _____   / __| | '_ \   / _ \  / __| | |/ /
2023-12-22T21:32:03.4039921Z  | |_| | | | | | | (_) | |_____| | (__  | | | | |  __/ | (__  |   < 
2023-12-22T21:32:03.4040393Z   \__,_| |_| |_|  \___/           \___| |_| |_|  \___|  \___| |_|\_\
2023-12-22T21:32:03.4040895Z                                                                     
2023-12-22T21:32:03.4078895Z ¤ Uno Platform Check v1.14.0.0 ¤
2023-12-22T21:32:03.4095669Z ────────────────────────────────────────────────────────────────────────────────
2023-12-22T21:32:03.4096466Z This tool will check your Uno Platform development environment.
2023-12-22T21:32:03.4098683Z If problems are detected, it will offer the option to try and fix them for you, 
2023-12-22T21:32:03.4099193Z or suggest a way to fix them yourself.
2023-12-22T21:32:03.4100172Z ────────────────────────────────────────────────────────────────────────────────
2023-12-22T21:32:04.1470299Z ¡ Your uno-check version is not up to date. The latest version is 1.18.1. You 
2023-12-22T21:32:04.1471957Z can use the following command to update:
2023-12-22T21:32:04.1472910Z 
2023-12-22T21:32:04.1478263Z dotnet tool update --global Uno.Check --version 1.18.1
2023-12-22T21:32:04.1479110Z 
2023-12-22T21:32:04.1479949Z ────────────────────────────────────────────────────────────────────────────────
2023-12-22T21:32:04.1638483Z Would you still like to continue with the currently installed version? [y/n] (n)
2023-12-22T21:32:04.1707344Z : Error: Failed to read input in non-interactive mode.
2023-12-22T21:32:04.2268059Z ##[section]Finishing: Install .NET Workloads | Uno-check
jeromelaban commented 10 months ago

You're running with uno.check 1.14.0, which has the issue I mentioned. How do you install uno.check?

carlh98 commented 10 months ago

We install the same way as in Uno Chefs app, at the time, we we wanted to use the manifest of 1.14.0 so we used that version.

Looking at your commit on Uno Check on Aug. 29th. We should be good using 1.16.0 with the manifest from 1.14.0.

I'm closing the issue since we have a fix, thanks.

jeromelaban commented 10 months ago

Thanks. Note that you can use --manifest with the raw URL of the manifest from release/stable/1.14, with uno.check 1.18.