victoreronmosele / flutter_gradient_generator

An online tool for creating and customizing gradients for use in Flutter applications.
https://fluttergradientgenerator.com
GNU General Public License v3.0
21 stars 5 forks source link

GitHub Actions Workflow Fails With "The unauthenticated git protocol on port 9418 is no longer supported." Bug #48

Closed victoreronmosele closed 2 years ago

victoreronmosele commented 2 years ago

GitHub Actions workflow fails with the error below:

Git error. Command: git clone --mirror git://github.com/victoreronmosele/cyclop.git /opt/hostedtoolcache/flutter/2.11.0-0.1.pre-dev/x64/.pub-cache/git/cache/cyclop-3769c5744d7a62da4e9b320c58f339a4baeeced0 stdout: stderr: Cloning into bare repository '/opt/hostedtoolcache/flutter/2.11.0-0.1.pre-dev/x64/.pub-cache/git/cache/cyclop-3769c5744d7a62da4e9b320c58f339a4baeeced0'... fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. exit code: 128

This is due to the use of a fork of the cyclop package as a git dependency: https://github.com/victoreronmosele/flutter_gradient_generator/blob/978f2438393a6f5c83d2386187b16ab9674b9de5/pubspec.yaml#L28-L30

victoreronmosele commented 2 years ago

This StackOverflow answer referencing https://github.com/actions/checkout/issues/14#issuecomment-523916396 suggests trying this block of code as a first step:

- name: Fix up git URLs
  run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig