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 reset forked solution version #376

Closed
wants to merge 1 commit into from
Closed

Conversation

zhirafovod
Copy link
Member

Description

Forked solution are means of isolation, and should inherit the original solution version. I.e., when you want to try a new version of the source solution, its new version should be used (right now resets to 1.0.0).

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@zhirafovod zhirafovod requested a review from pnickolov as a code owner May 6, 2024 19:38
@@ -215,7 +215,6 @@ func forkFromDisk(sourceDir string, fileSystem afero.Fs, solutionName string, st
} else {
solution.Manifest.Name = solutionName
}
solution.Manifest.SolutionVersion = "1.0.0" // reset version
Copy link
Contributor

Choose a reason for hiding this comment

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

To preserve the prior behavior and the use case of forking examples (where the version reset is the right action), I would recommend adding a flag, e.g., --preserve-solution-version that enables the new behavior explicitly, leaving the default to reset the version (as introduced in ef9a08d)

Also, while the fsoc-supported pseudo-isolation is now deprecated, it is still available if needed for specific uses. It works in a way that is similar to fork, except it is done transparently on solution push and you have control (and the obligation) to identify which instances of the original solution name need to be replaced. The latter is sometimes helpful when the solution name and attribute name element are the same.

@zhirafovod
Copy link
Member Author

This change not needed anymore

@zhirafovod zhirafovod closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants