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

Use symlink for bin/soljson-latest.js #156

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

clonker
Copy link
Member

@clonker clonker commented Sep 11, 2024

Fixes ethereum/solidity#13508

Related PR: #33

@clonker clonker requested a review from cameel September 11, 2024 14:48
Copy link
Member

@cameel cameel left a comment

Choose a reason for hiding this comment

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

Any idea why it wasn't working with a copy though? Was it running into an error but silencing it or something? If that's the case we should fix that, to avoid this kind of breakage in the future.

Also, have you checked that the link does get properly updated now when you add a new release binary (locally)? I'd assume yes since now it goes through the same path that other dirs go, but still, I don't see why the other path wasn't working in the first place so better to double check. If it does not work, we likely won't notice during the next release.

@clonker
Copy link
Member Author

clonker commented Sep 16, 2024

I didn't investigate much why it broke in the first place since that functionality was only used for that one place and this PR removes it - not fixing it here of course still carries the danger that if we need the functionality back for some reason and someone remembers this but doesn't remember it was not working correctly and just takes it from the history without testing it again...then... :D
A silenced error seems likely, yes.

And yeah, I checked locally if the link gets created/updated. Works on my machine! And running it takes forever, we should really get rid of (at least some!) nightly builds... Can't imagine anyone is using nightlies back from 2020.

@clonker
Copy link
Member Author

clonker commented Sep 16, 2024

@cameel you made me curious what may be the issue and (without having confirmed it really) it looks like readFileSync is the culprit. It should have been readFile, probably, the Sync version does not accept the callback function :)

@clonker clonker merged commit dc53b95 into gh-pages Sep 17, 2024
7 checks passed
@clonker clonker deleted the symlink-bin-soljson-latest branch September 17, 2024 16:43
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.

Replace bin/soljson-latest.js in solc-bin with a symlink
2 participants