Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not set VERSION env var in Fedora Container files #531

Closed
wants to merge 1 commit into from

Conversation

zmiklank
Copy link
Contributor

We no longer use this variable and it seems to be causing some problems for some use-cases.

Resolves: #530

@jackorp PTAL.

We no longer use this variable and it seems to be causing some problems
for some use-cases.
@zmiklank
Copy link
Contributor Author

[test]

@jackorp
Copy link
Contributor

jackorp commented Mar 13, 2024

Small (big in the context of the reported bug) issue, rebuilding the Fedora 3.1 container with this PR gives other VERSION:

bash-5.2$ env | grep VERSION
RUBY_VERSION=3.1
VERSION=37

This is the version of the actual Fedora of the container, compared with info from /etc/os-release.

In context of Rails, this will also completely revert all DB migrations as it seems rails is doing numerical compare and 37 is less than any YYYYMMDD formatted date "number".

To fix the issue it seems we need to unset the env variable completely.

Which might be the reason why the VERSION was set in the first place.

@zmiklank
Copy link
Contributor Author

@jackorp Good catch. I also vote for unsetting the variable entirely in this case. I will adjust this PR.

@zmiklank zmiklank closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fedora environment variable VERSION=0 causes Rails db migration reverting
2 participants