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

Update agent.yml with relative imports and cors fix #31

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

jaycoolslm
Copy link
Contributor

@jaycoolslm jaycoolslm commented Jun 11, 2024

ref issue: #28

Copy link
Contributor

@nickreynolds nickreynolds left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for doing this! And sorry we hadn't updated this earlier. I'm not sure when this broke as it was working after the Veramo v5 update.

Will wait to approve & merge until @mirceanis takes a look

@@ -92,7 +92,7 @@ server:
$ref: /constants/port
use:
# CORS
- - $require: 'cors'
- - $require: 'cors?t=function#default'
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch

agent.yml Outdated
@@ -221,7 +221,7 @@ keyManager:
- $ref: /constants/secretKey
# __TEMPLATE__: you can install your own Key Management System implementation too
my:
$require: ./build#MyKeyManagementSystem
$require: ./build/key-manager/my-key-management-system.js#MyKeyManagementSystem
Copy link
Contributor

Choose a reason for hiding this comment

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

might be cleaner to replace this with:

./build/index.js#MyKeyManagementSystem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure - will test it first to validate that works.

Makes me think that ./build should have worked though... probs just some stupid ESM thingy though

agent.yml Outdated
@@ -235,7 +235,7 @@ didManager:
providers:
# __TEMPLATE__: you can install your customized DID provider like so
did:my:
$require: ./build#MyIdentifierProvider
$require: ./build/did-manager/my-identifier-provider.js#MyIdentifierProvider
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

agent.yml Outdated
@@ -279,4 +279,4 @@ agent:
$args:
- $ref: /dbConnection
# __TEMPLATE__: install your plugin on the `@veramo/cli` agent
- $require: ./build#MyAgentPlugin
- $require: ./build/agent-plugin/my-plugin.js#MyAgentPlugin
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@nickreynolds
Copy link
Contributor

also could you update the PR comment to include "Fixes #28" ?

@jaycoolslm
Copy link
Contributor Author

jaycoolslm commented Jun 11, 2024

also could you update the PR comment to include "Fixes #28" ?
Done

Done. Will address the other recommendations tomorrow - getting late over here in UK

@jaycoolslm
Copy link
Contributor Author

@nickreynolds updates made

Copy link
Member

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

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

looks good

@nickreynolds
Copy link
Contributor

looks good, going to merge. tests are failing due to goerli deprecation, I can fix that in a separate PR though (tested with sepolia on my end and they pass)

@nickreynolds nickreynolds merged commit f12db72 into decentralized-identity:main Jun 12, 2024
1 check failed
@jaycoolslm
Copy link
Contributor Author

@nickreynolds cheers for checking - was confused as to while failing! But yeah, I remember the Goerli deps now...

PS. I am getting this error on window OS: Error creating C:\Users\JC211BT\code\meeco\veramo-plugin\build\index.js['MyKeyManagementSystem']: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'. While creating object from pointer: /keyManager. While creating object from pointer: /agent. While creating object from pointer: /server error Command failed with exit code 1.

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.

None yet

3 participants