Skip to content

[lldb/Utility] Don't forward directories to the file collector #638

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

Merged
merged 1 commit into from
Jan 23, 2020
Merged

[lldb/Utility] Don't forward directories to the file collector #638

merged 1 commit into from
Jan 23, 2020

Conversation

JDevlieghere
Copy link

The VFS mapping writer assumes that all the paths it gets are files.
When passed a directory, it ends up as a file in the VFS mapping twice,
once as a file and once as a directory.

{
'type': 'file',
'name': "Output",
'external-contents': "/root/path/to/Output"
},
{
'type': 'directory',
'name': "Output",
'contents': [ ... ]
}

(cherry picked from commit 4c2b0a6)

The VFS mapping writer assumes that all the paths it gets are files.
When passed a directory, it ends up as a file in the VFS mapping twice,
once as a file and once as a directory.

  {
    'type': 'file',
    'name': "Output",
    'external-contents': "/root/path/to/Output"
  },
  {
    'type': 'directory',
    'name': "Output",
    'contents': [ ... ]
  }

(cherry picked from commit 4c2b0a6)
@JDevlieghere JDevlieghere requested a review from fredriss January 23, 2020 04:47
@JDevlieghere
Copy link
Author

@swift-ci please test

@fredriss fredriss merged commit 8c6f7f3 into swiftlang:apple/stable/20190619 Jan 23, 2020
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