Skip to content

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

Merged
niheaven merged 2 commits intoScoopInstaller:developfrom
niheaven:remove-fullpath
Apr 10, 2024
Merged

refactor(core): Get rid of 'fullpath'#3533
niheaven merged 2 commits intoScoopInstaller:developfrom
niheaven:remove-fullpath

Conversation

@niheaven
Copy link
Copy Markdown
Member

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

Comment thread lib/core.ps1 Outdated
@niheaven
Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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

Comment thread lib/core.ps1 Outdated
Comment thread lib/core.ps1 Outdated
Comment thread lib/core.ps1
Comment thread lib/core.ps1
Comment thread lib/core.ps1 Outdated
Copy link
Copy Markdown
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

Comment thread lib/core.ps1 Outdated
Comment thread lib/core.ps1 Outdated
Comment thread lib/core.ps1 Outdated
Copy link
Copy Markdown
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
Copy Markdown
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
@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.

2 participants