nexus-repository-dart icon indicating copy to clipboard operation
nexus-repository-dart copied to clipboard

Flutter update fails when using the repository proxy

Open ghost opened this issue 3 years ago • 2 comments

Hi,

First of all : thanks for this plugin that saves us lots of downloading time. :)

I just run into an issue trying to upgrade flutter flutter upgrade thru the proxy.

My analysis of the issue: flutter fails accessing following resource : {nexus-server-url}/repository/dart-proxy//flutter_infra_release/flutter/d3ea636dc5d16b56819f3266241e1f708979c233/flutter-web-sdk-linux-x64.zip because nexus proxy seems to serve packages only under the following path: {nexus-server-url}/repository/dart-proxy/packages/

The workaround is to disable the proxy usage while upgrading.

Kind regards, Renaud

ghost avatar Dec 17 '21 00:12 ghost

Hello,

I already got this issue. I tried to fix it but it seems that "flutter update" doesn't only call "/flutter_infra_release"... In my case it broke my flutter installation and i need to reinstall it.

For now the fix is to add in the readme to disable proxy usage while upgrading like you suggest.

Will see in next development if it is possible to update with Nexus proxy urls without saving packages binaries in the cache.

mat1e avatar Dec 17 '21 10:12 mat1e

Hello,

I already got this issue. I tried to fix it but it seems that "flutter update" doesn't only call "/flutter_infra_release"... In my case it broke my flutter installation and i need to reinstall it.

For now the fix is to add in the readme to disable proxy usage while upgrading like you suggest.

Will see in next development if it is possible to update with Nexus proxy urls without saving packages binaries in the cache.

Thanks for your feedback !

ghost avatar Dec 17 '21 20:12 ghost