Skip to content

Conversation

@freddy77
Copy link

… paths

If the path in .gitmodules are specified using relative paths the
"dist" target can fail. This as the main repository is cloned
into a new directory so the new URLs of the sub-modules will be
relative to the new directory. However if the original URLs were
remote the new ones will be local and the clone will fail.

Signed-off-by: Frediano Ziglio [email protected]

@freddy77 freddy77 force-pushed the master branch 2 times, most recently from 0159b80 to 6f75266 Compare February 16, 2019 14:47
@jpakkane
Copy link
Member

This could really use a a test. It seems like a thing that has a high probability of breaking in the future.

@freddy77
Copy link
Author

Do you have any suggestion? I didn't find any test case related to distribution

@jpakkane
Copy link
Member

run_unittests.py has tests for dist.

@jpakkane
Copy link
Member

Ping.

@freddy77
Copy link
Author

Hi, sorry, no much time lately.

I think a good test would be:

  • create repositories (base + subproject)
  • clone the repositories
  • remove original repositories
  • attempt to "meson dist", should use local clones, not original ones

I saw the run_unittests.py script but looks like would be better to put the test in a separate file, it does not seem good to add all tests here. Any suggestion?

@jpakkane
Copy link
Member

jpakkane commented Jun 6, 2019

run_unittests.py is where these sorts of tests go for now. We might refactor that at some point but for now this is how it's done.

… paths

If the path in .gitmodules are specified using relative paths the
"dist" target can fail. This as the main repository is cloned
into a new directory so the new URLs of the sub-modules will be
relative to the new directory. However if the original URLs were
remote the new ones will be local and the clone will fail.

Signed-off-by: Frediano Ziglio <[email protected]>
@eli-schwartz
Copy link
Member

This was independently rediscovered in issue #8144 and then again in PR #8667. I finally fixed this in #9210, so this should now work as of Meson 0.60.0.

Sorry for not noticing it before. :(

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.

4 participants