11/28/2023 0 Comments Git checkout tag to branchBy checking out only tags that are labeled as releases, you can be confident that you are starting with a stable code base. But unless you check out a tag, you cannot be sure if the changes in the branch are compatible with other SFRA repositories. Nothing prevents you from checking out the main branch of any SFRA repository. Within SFRA repositories, branches can be updated and commits can be pushed without being tagged. A pre-release version is compatible within its major and minor versions, as is standard for semantic versioning, but it might be unstable. If a storefront-reference-architecture tag is labeled as 'Pre-release' in GitHub, the version has not been integration-tested with other SFRA product plugins and might be unstable. It further indicates that you can check out the v3.3.0 tag not only for the base storefront-reference-architecture repository, but also for other SFRA plugin repositories (for example, plugin-applepay, plugin_wishlist, plugin_ordermanagement, and so on). Here, the v3.3.0 tag is labeled as the 'Latest Release.' This label indicates that the v3.3.0 version is fully integration-tested with other product plugins and is considered stable. When you view the SFRA base repository in GitHub, you can click the releases tab to view releases. For all versions, once the base repository is tagged, all other SFRA product repositories are tagged with matching tags. Other versions are labeled as pre-releases. These fully tested, stable releases are labeled as releases in GitHub. However, only some versions are fully tested against the full suite of SFRA plugin repositories and deemed stable. Once merged, these incremental changes are considered a new version (and are tagged using a corresponding Git tag). The SFRA base repository (storefront-reference-architecture) is continually updated regularly, and each incremental update corresponds to a new version, but only some correspond to releases.ĭevelopment occurs on the integration branch of the base repository, and code changes are merged from the integration branch onto the main branch. You can repeat this process for all SFRA product repositories that you want to include in your project. You can then work in the branch you created, knowing that it matches the specified version (in this example, v3.3.0). You can fetch the tags using the following command: After cloning the SFRA product repositories, you can fetch the tags for each repository, list the tags, and check out the same version tag for each repository to ensure you are using the same version everywhere.įor each SFRA product repository, fetch all the tags before listing them or checking them out. All SFRA product repositories are tagged separately but follow the same pattern. For example, SFRA version v3.3.0 corresponds to the Git tag v3.3.0. This version number format applies to all SFRA GitHub product repositories, including the following: SFRA version numbers have the following format: Each patch version contains bug fixes or patches that are backwards-compatible within each minor version. Each minor version represents new functionality and features that are backwards-compatible within the major version. In semantic versioning, there are major versions, minor versions, and patch versions.Įach major version represents a version that is not backwards-compatible with previous versions. Semantic versioning is used for all SFRA product repositories on GitHub. SFRA version numbers follow the semantic versioning pattern. Releases are stable pre-releases might be unstable. In GitHub, some versions are labeled as releases, and others are labeled as pre-releases. Choosing a specific SFRA version ensures that your base cartridge and plugin cartridges work well together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |