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

nsqadmin: new flag --dev-static-dir instead of debug build tag #1372

Merged
merged 1 commit into from
Sep 12, 2021

Conversation

ploxiln
Copy link
Member

@ploxiln ploxiln commented Sep 5, 2021

more flexible, perhaps simpler


it's subjective, let me know what you think :)

@ploxiln ploxiln requested review from jehiah and mreiferson September 5, 2021 21:29
@ploxiln ploxiln force-pushed the nsqadmin_assets_debug_flag branch from a84a4ad to 9068ea6 Compare September 6, 2021 01:09
)

func staticAsset(name string) ([]byte, error) {
path := path.Join("../../nsqadmin/static/build", name)
Copy link
Member

Choose a reason for hiding this comment

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

I think the ugliness and problems likely resulting from this hard-coded path justify this change

Copy link
Member Author

Choose a reason for hiding this comment

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

indeed, this was the motivation :)
thanks

Copy link
Member

@mreiferson mreiferson left a comment

Choose a reason for hiding this comment

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

LGTM

avoid hard-coded ../../nsqadmin/static/build in debug build,
more flexible and obvious this way
@ploxiln ploxiln force-pushed the nsqadmin_assets_debug_flag branch from 9068ea6 to 2e99e51 Compare September 12, 2021 01:48
@ploxiln ploxiln merged commit 74731b6 into nsqio:master Sep 12, 2021
@ploxiln ploxiln deleted the nsqadmin_assets_debug_flag branch September 19, 2021 18:30
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