Skip to content

Improve luthier to check out by revision when possible.#133

Merged
aatxe merged 2 commits intoprimaryfrom
luthier-clone-by-revision
Apr 5, 2025
Merged

Improve luthier to check out by revision when possible.#133
aatxe merged 2 commits intoprimaryfrom
luthier-clone-by-revision

Conversation

@aatxe
Copy link
Copy Markdown
Member

@aatxe aatxe commented Apr 5, 2025

While we currently have a pretty sane set of dependencies, we're technically vulnerable to a possible supply chain attack right now relying solely on git tags. As it turns out, very conveniently, git has finally added support for checking out a single revision directly in the latest git version, git 2.49.0. So, we're now able to use revisions instead for anyone with the latest git installed.

@aatxe aatxe requested a review from Copilot April 5, 2025 03:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 6 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • extern/curl.tune: Language not supported
  • extern/libuv.tune: Language not supported
  • extern/luau.tune: Language not supported
  • extern/uWebSockets.tune: Language not supported
  • extern/wolfssl.tune: Language not supported
Comments suppressed due to low confidence (1)

tools/luthier.py:290

  • The update logic for an existing dependency always uses the revision even if the installed git version may not support it. Consider adding a version check here and falling back to using the branch when dealing with older versions of git.
check(call(['git', 'fetch', '--depth=1', 'origin', dependency['revision']]))

Co-authored-by: Copilot <[email protected]>
@aatxe aatxe merged commit 6bc351c into primary Apr 5, 2025
4 checks passed
@aatxe aatxe deleted the luthier-clone-by-revision branch April 5, 2025 03:31
green-real pushed a commit to green-real/lute that referenced this pull request May 19, 2025
While we currently have a pretty sane set of dependencies, we're
technically vulnerable to a possible supply chain attack right now
relying solely on git tags. As it turns out, very conveniently, git has
_finally_ added support for checking out a single revision directly in
the latest git version, `git 2.49.0`. So, we're now able to use
revisions instead for anyone with the latest `git` installed.

---------

Co-authored-by: Copilot <[email protected]>
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