How to install an older version of gomobile - go

after an OS re-install (MacOS Big Sur) I'm trying to get my go & gomobile development environment set up again. I have a specific version requirement for my app so I am using go 1.13.x, installed via homebrew.
I then installed gomobile via the command: go get golang.org/x/mobile/cmd/gomobile
The problem occurs when I run the following command: gomobile init, this throws the following error:
gomobile: Go 1.16 or newer is required
Before the OS rebuild I had the same go version (1.13.x) installed and gomobile worked, it never threw that error. After googling a bit my question is, is there a repository or place where I can download the gomobile binary for an earlier version? The website seems to only show a single "v0" version, which is the one causing the problem. Perhaps even if there's a way to build an older version from source?
Thanks in advance for any pointers!

Per the Go release policy, Go 1.13 hasn't been supported by the Go project for quite some time — for example, it hasn't received any security fixes since August 2020.
Instead of downgrading gomobile, upgrade to a supported version of the Go toolchain — see https://golang.org/doc/install for instructions.

Related

Flutter_CLI: Because every version of flutterfire_cli depends on xml >=5.3.0 which requires SDK version >=2.14.0 <3.0.0, flutterfire_cli is forbidden

I am trying to install firebase_cli for my flutter project, but it tells me:
"Because every version of flutterfire_cli depends on xml >=5.3.0 which
requires SDK version >=2.14.0 <3.0.0, flutterfire_cli is forbidden"
Showing that my SDK version is 2.13.4 and it needs 2.14.0 onwards.
I went to flutter console as administrator and run choco upgrade dart-sdk. It told me I now have version v2.17.3.
However, I still get the same problem in flutterfire_cli.
Things I've tried:
creating a .bashrc file with the line export PATH="$PATH": "C:\Users\sjrol\OneDrive\Documentos\flutter\.pub-cache\bin" in it (it is the route flutter console told me to save).
creating a system environment variable inside PATH that points to my dart folder , with the newer version.
In my pubspec.yaml file I've got .
Then rebooted the PC. Same problem. No idea of what's happening.
Dart pub global and choco upgrade results (running the firebase console as administrator):
Flutter doctor (I don't use android studio so no problem, and the android status problem is something I've been facing for a long time and has never given me any problem. Maybe it still has something to do with this?).
I can tell I'm working with the new dart version in my VSCode now, thanks to the new features it has, but firebase still won't let me install CLI. Thank you in advance for your help.
Try this:
Change your sdk version in pubspec.yaml to sdk: ">=2.17.3 <3.0.0"
Run dart --version to make sure the new path is working
Run flutter clean
Run the app

Go dlv: Failed to launch Version of go is too old for this verion of delve

I am getting this error while running the project in debug mode.
Failed to launch Version of go is too old for this verion of delve(minimum supported
version 1.15)
Currently go 1.13 is installed in my machine. If I upgrade go to the version 1.15 debugger is working fine. But this not the solution I am looking for. I want to make the debugger work with the current version of go. If you have any solution for this please let me know.
Thanks for your help in advance.
It's possible to disable the warning, but the recommended is downgrade Delve.
To disable the warning:
Open launch.json
Add this flag: "dlvFlags": ["--check-go-version=false"]
To downgrade Delve:
go install github.com/go-delve/delve/cmd/dlv#v<DELVE_VERSION>
Example: Downgrade to 1.7.3:
go install github.com/go-delve/delve/cmd/dlv#v1.7.3
Check the Delve version for seeing that is installed:
dlv version
More details in: https://github.com/go-delve/delve/tree/master/Documentation/installation
I want to make the debugger work with the current version of go.
The “current version of go” is Go 1.17, not 1.13.
Per the Go project's release policy, only the two newest major releases are supported — only those releases receive security fixes from the Go project.
Go 1.17 was just released, so the supported releases today are Go 1.17 and Go 1.16. For security's sake, you really ought to upgrade to Go 1.16 or higher. (See https://golang.org/doc/install for instructions.)

Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

After updating flutter version from 1 to 2, got unresolveable errors, so deleted all flutter sdk and redownload it using this command
git clone https://github.com/flutter/flutter.git -b stable
After this i entered command flutter precache which started downloading Dart Sdk, after that it get crash always...
no matter which command i run flutter doctor or any other, it always starts with Building flutter tool... and then crash.
Also tried other related questions and their answers but no luck...
flutter precache command exceution Image
Flutter and Dart Installed Directory Image
Crash proper image
If you are facing this on the Mac OS BigSur, please install rosetta first.
To do so you can use the following command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
It worked for me :).
Several packages are not yet fully updated for Flutter 2.0. So I recommend that you continue using Flutter 1.x until everything is resolved. The easiest way is to normally install Flutte 2.0 as if you were going to use it and then downgrade.
To download it, follow this tutorial here:
How to downgrade Flutter SDK (Dart 1.x)
When the flutter pub get fails to return the dependencies it gets stuck trying several times. And if you get a pub get via the interface you won't see any errors happening, so I recommend making flutter pub get.
Ok so i have filed this issue on flutter github.
You can checkout the link https://github.com/flutter/flutter/issues/78167
the answer they told me is: something in the certificate validation is broken on older Mac OS X versions.
Until they resolve issue for older versions of Mac OS. There are two possible solutions:
First is absolutely to upgrade Mac Version but if you have low Ram or Disk switch to solution no.2
Second solution is to downgrade flutter version.
Also like to point out that if you have installed flutter version 2, it won't downgrade to version 1 using command "Flutter Downgrade", atleast this was not working for me so i downloaded older version manually using this link: https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
Try delete your flutter sdk folder and checkout it's again.
git clone https://github.com/flutter/flutter.git -b stable

pebble-clay says my project is outdated, but it's not

I just updated the sdk to 4.1.4 and trying to install clay from command line I get the following message:
This projected is outdated (try 'pebble convert-project' or'pebble sdk install 2.9')
Now, I am not going to install the 2.9 sdk, of course, and I know that convert is just going to change appinfo.json into pakage.json, which I don't need to do because I am already on sdk 4.1.4.
Has anybody here had the same issue, how did you solve it?
Pebble-Clay is a JS package that can also be installed by running
npm install pebble-clay
This fixes the issue.
Alternatively downloading and installing the SDK 2.9 will fix it. (This will not overwrite the latest version of the SDK.)

How to install Xcode 4.6 on Lion, needed for upgrading ruby with RVM

I was actually trying to update ruby on my OSX 10.7.5 with RVM, and after typing in the following command:
rvm install ruby
I got the following response:
Searching for binary rubies, this might take some time.
Checking requirements for osx.
Installing requirements for osx.
Updating system.......
Error running 'requirements_osx_brew_update_system ruby-2.0.0-p247',
please read /Users/username/.rvm/log/1381215459_ruby-2.0.0-p247/update_system.log
Requirements installation failed with status: 1.
Then, when I checked out the update_system.log, it showed me the actual code of a function called requirements_osx_brew_update_system(), which contained the following error message:
Xcode version older than 4.6.2 installed, download and install newer version from:
http://connect.apple.com
After installation open Xcode, go to Downloads and install Command Line Tools.
Then I proceeded to find an update for Xcode, but only found the latest Xcode 5.0, which is apparently incompatible with my OSX 10.7. Although ultimately my goal is to update ruby and install rails, which I'm sure there are many other ways to do, I'd still like to find out if I could possibly install Xcode 4.6.2 on my OSX 10.7.
UPDATE: Sorry folks, apparently my version of XCode is v4.6.1 so updating the command line tools will not work in all cases (I know for a fact it doesn't work if you're on XCode v4.3.3). YMMV
I ran into the same issue trying to do an rvm install. I got an error telling me that I needed XCode 4.6.2 or later.
Turns out all it needed was the latest version of the XCode command line tools. I followed the instructions for upgrading my command line tools from this macports article:
open the Xcode application
go to the Preferences window
open the Downloads section
click the Install button next to "Command Line Tools"
After doing this I was able to run my rvm install command and it didn't complain about upgrading XCode anymore (and finished successfully).
It seems you're going to have to install under Xcode 5. So go to https://developer.apple.com/downloads/ and log in with your developer ID to get to the older versions. There should be a 4.6.3 that you could potentially download, or even 4.6.2.
Or you could upgrade your OSX to 10.8.
Whichever you prefer.
I can't give you a direct link to it, since you need your developer information to log in yourself. But all the downloads you need are in the link provided above once you log in.
Open xcode and update it via the app store.
Then
xcode-select --install
This will install xcode via the command line

Resources