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

Compilers package #1914

Open
wants to merge 9 commits into
base: staging
Choose a base branch
from
Open

Compilers package #1914

wants to merge 9 commits into from

Conversation

manuelwedler
Copy link
Contributor

@manuelwedler manuelwedler commented Feb 7, 2025

Closes #1348

This simply moves the useCompiler functions to a new public package without refactoring the code much.

@manuelwedler manuelwedler marked this pull request as ready for review February 21, 2025 15:00
Copy link
Member

@marcocastignoli marcocastignoli left a comment

Choose a reason for hiding this comment

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

I see many compilers types were removed, I think we should coordinate to use the types we declared in the verification flow refactoring PR

@@ -37,8 +35,8 @@ export function findVyperPlatform(): string | false {
export async function useVyperCompiler(
vyperRepoPath: string,
version: string,
vyperJsonInput: VyperJsonInput,
): Promise<VyperOutput> {
vyperJsonInput: any,
Copy link
Member

Choose a reason for hiding this comment

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

In the new verification flow PR there are a lot of new types like this one. I'm wondering if we should move them in this new package. Also I see here you removed the type, why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it because we would have a circular dependency graph if lib-sourcify would be a dependency for compilers. Lerna was complaining about this first.

I also thought about moving the types to the compilers package. I think it can makes sense, but it would also couple lib-sourcify more tightly with compilers and make the compilers package a requirement for anyone who is using lib-sourcify.

Copy link
Member

Choose a reason for hiding this comment

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

Mhhh I already don't like this :D The only solution I see other than including the types in the compiler package is to create another compiler-types package

@@ -0,0 +1,83 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

We should also setup running the tests in the debugger with .vscode configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah right. I forgot that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Sprint - Needs Review
Development

Successfully merging this pull request may close these issues.

"packagizing" the useCompiler
2 participants