Heroku supported SBT version - heroku

Heroku documentation states SBT v0.12.3 is supported. I set my project/build.properties to sbt.version=0.12.3 and push, but Heroku responds with "Error, SBT version 0.12.3 not supported".
Which versions are supported?

Through trial and error, it seems that v0.12.2 is the highest supported version at this time, despite what the documentation says.

Related

yarn global command failing on mac

I am trying to add vtex using yarn but getting below error,
Usage Error: The 'yarn global' commands have been removed in 2.x - consider using 'yarn dlx' or a third-party plugin instead
yarn version: 3.2.0
Node: 16.14.0
NPM: 8.5.2
OS Details: MacOS Monterey, chip: apple m1 pro
Thanks in advance.
quick answer
Did you try to use yarn dlx instead of yarn global (removing the word add)? The resulting command:
yarn dlx vtex
explanation & official doc reference
The above command is what the instruction in the error message means to recommend. Granted, "consider using 'yarn dlx' or a third-party plugin instead", could be clearer. Nonetheless it has some useful info.
The yarn dlx documentation is probably more to the point. Their example:
yarn dlx create-react-app ./my-app
The documentation explains that the dlx command uses a temporary environment in place of using global packages.
Most package manager maintainers have come to the conclusion that global package versions are problematic. You can find various discussions of why package manager maintainers are giving (and encouraging) alternatives, usually citing the issues developers encounter with different projects requiring different versions.
In any case, it's hard to argue that the best option is downgrading. Likely you'll not regret trying the up-to-date approach.
On mac OS check yarn version by running command in terminal,
yarn --version
If it is greater than or equal to 2. Please downgrade yarn version to 1.xx.x using,
yarn set version 1.22.1

Imagemagick buildpack for Heroku-18 stack

I am upgrading my Heroku tech stack to Heroku-18 from heroku-16. I am getting error while deploying beacause of un supported Imagemagic build pack for Heroku-18. Is there any option to use another Imagemagic version that supports in Heroku-18 stack.thanks in advance.
Apparently Heroku 18 already comes with Imagemagick, so you no longer need the separate buildpack.

How to install old version (1.8.3) of docker on OS-X?

There is a nasty bug in Docker 1.9.x that is causing java
processes to hang and frankly hang up the entire container
instance, spinning 100% CPU.
I currently have docker 1.9.1 installed because that is all that
the docker install tool will install. There is no opportunity during
the install process to select any other version.
This is completely preventing me from building a cordova
build container. In my internet research I have found many
others who are encountering the same problem.
I've done some research and seen that others are reporting this
problem does not occur with Docker 1.8.3.
I've searched in vain for some hints on how to install older versions
of docker on OS-X. I tried replacing the boot2docker.iso in ~/.docker/machine/machines/default with the 1.8.3 version downloaded
from here: https://github.com/boot2docker/boot2docker/releases/tag/v1.8.3 but that fails miserably. I am guessing that there are other things about my default machine (which had been created with 1.9.1) that are incompatible with it.
If anybody has hints as to how I could create a new machine or modify
the existing machine to work with 1.8.3 I would very much appreciate
it.
Alternatively, let me know if there is some other installation method that would allow me to specify which version of docker to install.
I figured out that what I needed to do is to find an older version of DockerToolbox and that would install the version of docker that I wanted.
I went to the github repository for DockerToolbox:
https://github.com/docker/toolbox/releases?after=v1.9.
and there I found a link to the 1.8.3 binary:
https://github.com/docker/toolbox/releases/download/v1.8.3/DockerToolbox-1.8.3.pkg
I still had to uninstall my previous installation of docker so I followed the uninstall instructions on this page:
https://medium.com/#itseranga/install-old-version-of-docker-osx-c92ebd5f15f7#.5qh1z0ino
Once I had uninstalled and reinstalled via the legacy DockerToolbox, I managed to build the cordova container:
https://github.com/oren/docker-cordova
without incident.
I've been using the following:
https://get.docker.com/builds/$(uname -s)/$(uname -m)/docker-.tgz
See https://github.com/docker/for-mac/issues/1120.
If you happen to know the build number (e.g. 14937) -- not the git commit you see when running docker --version or docker version -- you can form the URL:
https://download.docker.com/mac/{{ beta | stable}}/{{ version }}.{{ build number }}/Docker.dmg
# example:
https://download.docker.com/mac/stable/1.12.6.14937/Docker.dmg

dnvm can't find latest version from nuget.org

Going through the steps of setting up dnvm on OSX and I can't seem to get past the dnvm upgrade step as it's returning the error:
~$ dnvm upgrade
Determining latest version
Error: Could not find latest version from feed https://nuget.org/api/v2
I can install based off the unstable feed using -u however then I run into a whole new set of issues.
This actually is caused by dnvm not following a redirect to www.nuget.org (instead of without the www). It is fixed with the following line:
export DNX_FEED=https://www.nuget.org/api/v2
Hope that helps
The packages will be available soon:
https://github.com/aspnet/dnvm/issues/235

Upgrading ImageMagick on Heroku

Is this possible? If so how I do upgrade from Version XXX to Version XXXX?
I can't seem to find any docs on it.
Thanks!
No.
Heroku maintain imagemagick as part of the service so you'd have to convince them to upgrade it across the platform.
The way to upgrade ImageMagick on heroku now is by using a 'buildpack'.
If you search through the buildpacks on heroku: https://elements.heroku.com/search/buildpacks?utf8=%E2%9C%93&q=imagemagick you can see there are quite a few dedicated to updating ImageMagick.
You can install a custom buildpack by using the following command line call:
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-erlang
Buildpack set. Next release on random-app-1234 will use https://github.com/heroku/heroku-buildpack-erlang.
Run `git push heroku master` to create a new release using this buildpack.
More information about buildpacks can be found here: https://devcenter.heroku.com/articles/buildpacks

Resources