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

Remove go-getter & simplify module source detection #783

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Feb 4, 2022

This simplifies the relatively non-critical part of code which is responsible for detecting module source (which has the effect of displaying different icons in the UI).

Here I'm trading-off possibly less accuracy for faster compile times by removing go-getter as a dependency.

In GitHub CI, the cross-compilation was previously around 8-11mins:

This should shave off at least a few minutes on average - the CI run associated with this PR reported 5m 33s.

@radeksimko radeksimko force-pushed the f-remove-go-getter branch 2 times, most recently from e7f95d0 to 70a7692 Compare February 25, 2022 16:41
@radeksimko radeksimko marked this pull request as ready for review February 25, 2022 17:21
@radeksimko radeksimko requested a review from a team February 25, 2022 17:26
@radeksimko radeksimko changed the title Remove go-getter Remove go-getter & simplify module source detection Feb 25, 2022
Copy link
Contributor

@jpogran jpogran left a comment

Choose a reason for hiding this comment

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

Go go speed racer!

Comment on lines +19 to +25
var moduleSourceLocalPrefixes = []string{
"./",
"../",
".\\",
"..\\",
}

Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏼

@radeksimko radeksimko merged commit 4e094ac into main Feb 25, 2022
@radeksimko radeksimko deleted the f-remove-go-getter branch February 25, 2022 17:31
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants