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

fix: trin cli flag displays wrong version info #1609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

njgheorghita
Copy link
Collaborator

@njgheorghita njgheorghita commented Dec 17, 2024

What was wrong?

#1581 (comment)

How was it fixed?

After a little research into our options, I agree with @carver 's suggestion to just remove the version dependency inside ethportal-api. There might be an option with configuring the PROJECT_ROOT based on a flag, but that route introduces some management overhead that IMO is not worthwhile. This solution plays nicely with docker and all our current config (afaik)... and I'm not sure it's a huge loss to remove the VERSION info from the cli. The only side affect that I can tell is that running

cargo run -p trin -- --version

will just return the string I replaced the version with, and if somebody needs to know the version, running the client quickly seems like a reasonable compromise.

To-Do

@njgheorghita njgheorghita force-pushed the version branch 2 times, most recently from 4738f4e to 85537af Compare December 17, 2024 19:09
@njgheorghita njgheorghita changed the title bugfix: trin cli flag displays wrong version info fix: trin cli flag displays wrong version info Dec 17, 2024
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit: we can do this for now if it is blocking anything.

I want to remove the shadow-rs stuff and replace it with a different solution as I don't think shadow-rs is needed to properly do versioning.

I also figured out how to make it so we report the right version for Trin which is nice. It is a little to much to discuss on this PR, but I need it for ping extensions. So I will probably make a PR after this one

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