-
Notifications
You must be signed in to change notification settings - Fork 993
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: handle corner cases related to SCM with local sources optimization #4249
Changes from 34 commits
6a5d3f4
3b812b6
18a7a22
7bf233b
843310c
3e4cfc5
1ed8340
100eb2c
ca5b0d3
7de4d29
4a29eb3
1894a7a
febe546
7eafda4
0dc41cf
e45d606
91b2b7b
54e9a6d
1c25bdd
8487db9
f763903
5148671
b25fe45
1db293e
84e97b7
c2ec7c1
451253c
c8f976a
0ec7c81
48f7f22
e2831e1
576d30d
892a597
d676791
33d0c84
560d5d5
5e7b955
c451b37
8855cc9
31121a2
d500375
914d9a2
752ee6b
31dcb84
f7cf4e7
40834fc
9c91fee
7cfe96b
ec55353
33734c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,10 @@ class ScmtestConan(ConanFile): | |
""" | ||
client = TestClient() | ||
client.save({"conanfile.py": conanfile}) | ||
client.runner("git init .", cwd=client.current_folder) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? The test case was failing even if it wasn't a git repo. Maybe leave the test as it was, and if anything, adding a new one with a git repo too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without creating the Git repository this test fails (because it cannot get the URL to the remote). It is related to the comment about the difficult to understand block. If I execute conditionally that block for Git, then this test (and many others) can be kept as before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. Maybe an error test, if it is not a git repo, what is the error message. Who is launching it and at which step? Hint: should probably be on export time, not on "create" time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if:
|
||
client.run("source .") | ||
self.assertEqual(["conanfile.py"], os.listdir(client.current_folder)) | ||
self.assertEqual(sorted(["conanfile.py", '.git']), | ||
sorted(os.listdir(client.current_folder))) | ||
|
||
def local_flow_patch_test(self): | ||
# https://github.com/conan-io/conan/issues/2327 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check with a test of export+upload, without having a remote repo origin, and it should fail.