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

fix: optimize mimalloc dependency management #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

david-clang
Copy link

@david-clang david-clang commented Dec 19, 2024

Background

mimalloc branch v1.8.2 was removed, causing the execution of git submodule update --remote to fail

fatal: Unable to find refs/remotes/origin/v1.8.2 revision in submodule path 'vendor/mimalloc'

Solution

  1. branch specifies the master branch.
    • master: latest stable release (based on dev-slice). link
  2. update the submodule method:
    1. git submodule update --remote --recursive.
    2. push the vendor/mimalloc folder changes.
  3. just run the following commands during development:
    1. git submodule update --init --recursive, It will pull the commit from step 2.

CI and Testing

  1. github action for the david-clang:fix/gitmodules branch link
  2. test262 no error, link
    • Submodule path 'vendor/mimalloc': checked out '2765ec93026f445cad8f38e6b196dd226a1f6e61' It stands for testing with branch master(v2.1.7) .

@@ -1,4 +1,4 @@
[submodule "vendor/mimalloc"]
path = vendor/mimalloc
url = https://github.com/microsoft/mimalloc
branch = v1.8.2
branch = master
Copy link
Member

Choose a reason for hiding this comment

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

change to master branch?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, the master branch is the stable branch, master: latest stable release (based on dev-slice).

  1. Execute git submodule update --remote --recursive and push the vendor/mimalloc folder changes when a submodule needs to be updated.
  2. Executing git submodule update --init --recursive will not update the master branch's latest commit, It will pull the commit from step 1.

Copy link
Author

Choose a reason for hiding this comment

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

in addition, .gitmodules does not support tag or commit

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.

2 participants