Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Workspace Loader Only Check Top Level Directory #49

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

ScottCarda-MS
Copy link
Contributor

Changed the behavior of the workspace loader's file search to only check for qs file in the top level folder.

@ScottCarda-MS
Copy link
Contributor Author

PR for issue #20.

Copy link
Contributor

@cgranade cgranade left a comment

Choose a reason for hiding this comment

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

This looks like a good fix, thanks for doing that, @ScottCarda-MS! As discussed offline, we'll need to mention this in release notes (+@natke and @bromeg) for awareness, and will need to check that no sample or kata code is broken (@bettinaheim and I for samples, @tcNickolas for katas).

@tcNickolas
Copy link
Member

Would it be possible to get instructions on how to check that this change doesn't break the katas?

@cgranade
Copy link
Contributor

Would it be possible to get instructions on how to check that this change doesn't break the katas?

This change causes that, when called from IQ# or Python, all Q# code must be in the current working directory or in a referenced package. There should be an alpha package from this PR on the prerelease feed that will allow for testing, just need to make sure you have a NuGet.Config set up to point to that feed (this repo has an example of such a config in its root).

Copy link
Member

@anpaz anpaz left a comment

Choose a reason for hiding this comment

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

That was easy. Thanks for taking care of it!

@anpaz
Copy link
Member

anpaz commented Oct 21, 2019

@tcNickolas , I took a quick look at Katas, and all the .qs files are in the same folder as the notebook, so it should not affect them.
There are a couple of other .qs files under the $/utilities folder, but should not be affected.

@ScottCarda-MS
Copy link
Contributor Author

ScottCarda-MS commented Oct 22, 2019

@tcNickolas mentioned that this may cause issues with the DeutschJozsaAlgorithm kata. I am, at this time, unable to test this change against that kata.

@bettinaheim bettinaheim merged commit b940818 into master Oct 24, 2019
@bettinaheim bettinaheim deleted the sccarda/PreventRecurrsiveFileSearch branch October 24, 2019 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants