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

chore: wrap precompile filename and tags logic #484

Merged

Conversation

harry-hov
Copy link
Contributor

Make precompile targetFilename and tags logic reusable by wrapping it in a function.

@harry-hov harry-hov requested a review from a team as a code owner January 26, 2023 09:37
@harry-hov harry-hov marked this pull request as draft January 26, 2023 09:45
Make precompile targetFilename and tags logic reusable by
wrapping it in a function.

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
@harry-hov harry-hov force-pushed the hariom/wrap-precompile-filename-tag-logic branch from a3a079f to 291845e Compare January 26, 2023 09:51
@harry-hov harry-hov marked this pull request as ready for review January 26, 2023 09:52
@harry-hov
Copy link
Contributor Author

Hey, @moul can you review this? blocker for #479.

Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

Looks good 💯

I've just left a small comment regarding helper placement

pkgs/gnolang/precompile.go Show resolved Hide resolved
@moul
Copy link
Member

moul commented Jan 27, 2023

We should keep the official pkgs as minimal as possible. What usages for external people are you expecting?

If it's just for internal use, let's start having an internal/ pkgs folders.

@harry-hov
Copy link
Contributor Author

@moul I agree with you. Since this pkg has the ability to precompile files. IMHO it should also have the ability to get filename/tags for precompiled files.

But I'm also okay with having internal/pkgs folders. I will go with whatever the team suggests.

pkgs/gnolang/precompile.go Show resolved Hide resolved
@moul moul merged commit 76d23ef into gnolang:master Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants