Skip to content

Conversation

ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Jan 8, 2023

Description

This should fix issues with initializing submodules. I have been unable to initialize submodules at all until I made this change.

Todo:

  • Requires a small update to the build-deps workflow step that creates the PR against Sunshine

Screenshot

Issues Fixed or Closed

Resolves this error

$ git submodule sync; git submodule update --recursive
Synchronizing submodule url for 'third-party/Simple-Web-Server'
Synchronizing submodule url for 'third-party/TPCircularBuffer'
Synchronizing submodule url for 'third-party/ViGEmClient'
Synchronizing submodule url for 'third-party/ffmpeg-linux-aarch64'
Synchronizing submodule url for 'third-party/ffmpeg-linux-x86_64'
Synchronizing submodule url for 'third-party/ffmpeg-macos-aarch64'
Synchronizing submodule url for 'third-party/ffmpeg-macos-x86_64'
Synchronizing submodule url for 'third-party/ffmpeg-windows-x86_64'
Synchronizing submodule url for 'third-party/miniupnp'
Synchronizing submodule url for 'third-party/moonlight-common-c'
Synchronizing submodule url for 'third-party/nv-codec-headers'
fatal: not a git repository: C:/Users/ReenigneArcher/Documents/GitHub/LizardByte/Sunshine/third-party/TPCircularBuffer/../../.git/modules/TPCircularBuffer
Failed to clone 'third-party/TPCircularBuffer'. Retry scheduled
fatal: not a git repository: C:/Users/ReenigneArcher/Documents/GitHub/LizardByte/Sunshine/third-party/miniupnp/../../.git/modules/miniupnp
Failed to clone 'third-party/miniupnp'. Retry scheduled
fatal: not a git repository: C:/Users/ReenigneArcher/Documents/GitHub/LizardByte/Sunshine/third-party/nv-codec-headers/../../.git/modules/nv-codec-headers
Failed to clone 'third-party/nv-codec-headers'. Retry scheduled
BUG: submodule considered for cloning, doesn't need cloning any more?
Submodule path 'third-party/Simple-Web-Server': checked out '2f29926dbbcd8a0425064d98c24f37ac50bd0b5b'
fatal: could not get a repository handle for submodule 'third-party/TPCircularBuffer'

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

@psyke83
Copy link
Contributor

psyke83 commented Jan 8, 2023

Tested a manual addition:

$ git submodule add https://github.com/mirror/x264 third-party/test
$ cat .gitmodules | tail
[submodule "third-party/test"]
	path = third-party/test
	url = https://github.com/mirror/x264

Your change looks like it replicates how git would natively format any new addition to .gitmodules file, so it's probably a good change overall.

@ReenigneArcher ReenigneArcher merged commit a26877a into nightly Jan 8, 2023
@ReenigneArcher ReenigneArcher deleted the fix/submodule-names branch January 8, 2023 15:05
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