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

Changed getOpenMageVersion() #4496

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Jan 19, 2025

Tests work.

We dont need to upgrade the verion for every release anymore, but 3rd-party cant get the version info anymore.

In a composer-based procet you can detect the installed version easily. Do we need to have hardcoded version number?

@github-actions github-actions bot added Template : admin Relates to admin template Template : base Relates to base template Component: Adminhtml Relates to Mage_Adminhtml Mage.php Relates to app/Mage.php Component: Page Relates to Mage_Page composer Relates to composer.json labels Jan 19, 2025
Comment on lines +185 to +187
$versionfromGit = self::getVersionFromGit($withHas);
if ($versionfromGit) {
return $versionfromGit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that collide with other repos that uses openMage?

if my repo has tags, then it would return my Repo tags instead of the OpenMage tags

Copy link
Contributor Author

@sreichel sreichel Feb 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have two ways to install ...

  • git clone ... gibt branch + hash is shown
  • composer ... branch is shown
  • having a fork with own tags ... your tag will be shown (you know what you have forked)

@github-actions github-actions bot added the Component: Core Relates to Mage_Core label Feb 1, 2025
@sreichel sreichel marked this pull request as ready for review February 1, 2025 01:00
Copy link

sonarqubecloud bot commented Feb 1, 2025

@sreichel sreichel marked this pull request as draft February 10, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Core Relates to Mage_Core Component: Page Relates to Mage_Page composer Relates to composer.json enhancement Mage.php Relates to app/Mage.php Template : admin Relates to admin template Template : base Relates to base template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants