-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve the stability of the tokenizer #134
base: master
Are you sure you want to change the base?
Conversation
of the tokens could fail. To fix this move to the cborg provided compare method.
"eslint-config-ipfs": "^7.0.6", | ||
"eslint-plugin-n": "^17.14.0" |
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.
aegir should be contributing what it needs for linting, no? does it fail without these?
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.
it does fails without on my side.
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.
try removing these and push again, this changeset works for me locally without them and pushing a new commit might wake CI up, something odd going in GitHub Actions even after a re-start attempt
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.
$ npm ls --all | grep 'eslint-config-ipfs\|eslint-plugin-n'
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ ├─┬ [email protected]
this is from a freshly installed tree without them, so they're there already from aegir.
The failures in the CI i don't understand --- they are all released to the git checkouts --- any ideas. |
that's what happens here if i remove the eslint deps:
|
Sorry, if I run the exact same commands I don't get that error. What version of Node.js and npm are you doing this on?
|
$ node -v if i use: and remove the additional deps --- i get the same error as with the other versions. my .npmrc a almost clean: that's enough investigation for me now --- I will just remove these imports |
I've tried it locally on a fresh checkout without the additional deps. It works for me. $ node -v
v20.13.1
$ npm -v
10.5.2 |
Due to some oddities with esm.sh, the object compare of the tokens could fail.
To fix this, make use of cborg provided Type.compare method.
I'm sorry for the package.json changes but they are needed if I want to run the tests locally.