Closed dgdavid closed 2 weeks ago
The unbound variable
problem is because of the -u
in set -eu.
If we want to keep the -u
, we need to set a default value for CI
.
To reproduce the problem, please install a fresh openSUSE Tumbleweed and try to run the ./setup.sh
You need to install rubygem-ruby-augeas from RPM before running the script. I'll update the script to install it automatically...
Ah, the script prefers the RPM version only when running in CI, you need to run it with CI=true
...
Then it will try to install the gems to /usr,
which is not what I want on my system. And I will need to run the command as root
.
Yes, we probably do not want to do this outside CI... :worried:
Perhaps we could use distrobox to set up the development system: https://github.com/agama-project/agama/pull/1687.
problem with ruby augeas should be fixed with https://github.com/agama-project/agama/pull/1705 .
It should be fixed with #1687.
When running ./setup-sh on a fresh openSUSE Tumbleweed installation, I'm facing two problems,
./setup-services.sh: line 119: CI: unbound variable
, related to change introduced in https://github.com/agama-project/agama/commit/fac8bb6e7afc16feb63a2feb4b27f5dc1a9edfd0. Commenting lines added in linked commit leads to following problemAn error occurred while installing ruby-augeas (0.5.0), and Bundler cannot continue.
Which is quite similar error that was solved at https://github.com/agama-project/agama/pull/1565 for CI.