Skip to content
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

refactor(core): Get rid of 'fullpath' #3533

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

niheaven
Copy link
Member

Get rid of fullpath, just get absolute path when initialing $globaldir, $scoopdir and $cachedir, other dirs are derived from these three root ones.

lib/core.ps1 Outdated Show resolved Hide resolved
@niheaven
Copy link
Member Author

Removed is_in_dir test case will never be met when using scoop.

Copy link
Contributor

@Ash258 Ash258 left a comment

Choose a reason for hiding this comment

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

Add fullpath function back with deprecated message

lib/core.ps1 Outdated Show resolved Hide resolved
lib/core.ps1 Outdated Show resolved Hide resolved
lib/core.ps1 Show resolved Hide resolved
lib/core.ps1 Show resolved Hide resolved
lib/core.ps1 Outdated Show resolved Hide resolved
Copy link
Contributor

@Ash258 Ash258 left a comment

Choose a reason for hiding this comment

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

Whole codebase is using lowcased keywords. Do not see a reason to add additional inconsistency.

https://github.com/lukesampson/scoop/search?l=PowerShell&q=param

lib/core.ps1 Outdated Show resolved Hide resolved
lib/core.ps1 Outdated Show resolved Hide resolved
lib/core.ps1 Outdated Show resolved Hide resolved
Copy link
Contributor

@Ash258 Ash258 left a comment

Choose a reason for hiding this comment

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

LGTM

@Ash258
Copy link
Contributor

Ash258 commented May 21, 2020

This will break Excavator due to path glueing with hardcoded backslash.

image

image

@Ash258 Ash258 mentioned this pull request Jun 11, 2020
21 tasks
@niheaven niheaven changed the title opt(core): Get rid of 'fullpath' refactor(core): Get rid of 'fullpath' Apr 10, 2024
@niheaven niheaven merged commit 92b71c6 into ScoopInstaller:develop Apr 10, 2024
2 checks passed
@niheaven niheaven deleted the remove-fullpath branch April 10, 2024 06:55
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.

None yet

2 participants