8000 Remove .scalar folder by derrickstolee · Pull Request #251 · microsoft/scalar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove .scalar folder #251

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 13 commits into from
Nov 26, 2019
Merged

Remove .scalar folder #251

merged 13 commits into from
Nov 26, 2019

Conversation

derrickstolee
Copy link
Contributor
@derrickstolee derrickstolee commented Nov 25, 2019

This replaces #239 which was reverted in #248.

The only change is the algorithm for finding the enlistment root. The previous algorithm had an issue when called from the src folder as it would create the enlistment root there and then the ScalarEnlistment class still automatically added src to that for the working directory root.

This was not caught by the functional tests because they run the maintenance verbs from the enlistment root, not the src folder. I didn't catch it in testing because my local testing was from the old mechanism using git config instead. The performance test suite does reveal this problem.

As a follow-up, we should remove the "working directory backing root" (#250).

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee derrickstolee added this to the MVP milestone Nov 25, 2019
@derrickstolee derrickstolee added the disk-layout Issues that impact the disk layout used by Scalar label Nov 25, 2019
@derrickstolee
Copy link
Contributor Author

/azp run microsoft.scalar

@azure-pipelines
Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@derrickstolee derrickstolee changed the title Remove .scalar folder [WIP] Remove .scalar folder Nov 26, 2019
The previous algorithm that looked for an enlistment without a
.scalar directory did not make a distinction between "src/.git" and
just ".git" as to where the working directory was. Since the
ScalarEnlistment class automatically added a "src" dir to the
enlistment root, that caused maintenance verbs to fail when run
inside the "src" folder (it would add a second "src" dir).

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee derrickstolee changed the title [WIP] Remove .scalar folder Remove .scalar folder Nov 26, 2019
Copy link
Member
8000 jrbriggs left a comment

Choose a reason for hiding this comment

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

Approved with suggestions.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee
Copy link
Contributor Author

/azp run microsoft.scalar

@azure-pipelines
Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@derrickstolee derrickstolee merged commit 9a56845 into microsoft:master Nov 26, 2019
chrisd8088 added a commit to chrisd8088/scalar that referenced this pull request Oct 7, 2020
The corresponding method in the MacPlatform.Shared.cs file
was removed in commit 2a75485
in PR microsoft#251, so we can also drop GetNamedPipeNameImplementation()
from the POSIX platform as well.
chrisd8088 added a commit to chrisd8088/scalar that referenced this pull request Oct 9, 2020
The corresponding method in the MacPlatform.Shared.cs file
was removed in commit 2a75485
in PR microsoft#251, so we can also drop GetNamedPipeNameImplementation()
from the POSIX platform as well.
chrisd8088 added a commit to chrisd8088/scalar that referenced this pull request Oct 9, 2020
The corresponding method in the MacPlatform.Shared.cs file
was removed in commit 2a75485
in PR microsoft#251, so we can also drop GetNamedPipeNameImplementation()
from the POSIX platform as well.
chrisd8088 added a commit to chrisd8088/scalar that referenced this pull request Oct 10, 2020
The corresponding method in the MacPlatform.Shared.cs file
was removed in commit 2a75485
in PR microsoft#251, so we can also drop GetNamedPipeNameImplementation()
from the POSIX platform as well.
chrisd8088 added a commit to chrisd8088/scalar that referenced this pull request Oct 10, 2020
The corresponding method in the MacPlatform.Shared.cs file
was removed in commit 2a75485
in PR microsoft#251, so we can also drop GetNamedPipeNameImplementation()
from the POSIX platform as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disk-layout Issues that impact the disk layout used by Scalar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0