-
Notifications
You must be signed in to change notification settings - Fork 431
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
base: staging
Are you sure you want to change the base?
Compilers package #1914
Conversation
7564f70
to
fb670aa
Compare
in order to avoid a circular dependency graph
fb670aa
to
56388ae
Compare
56388ae
to
80076c5
Compare
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 @@ | |||
{ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Closes #1348
This simply moves the useCompiler functions to a new public package without refactoring the code much.