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

Fix local source absolute resource URL #26

Open
dormeiri opened this issue Mar 4, 2023 · 0 comments
Open

Fix local source absolute resource URL #26

dormeiri opened this issue Mar 4, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers scanner Changes required in the scanner

Comments

@dormeiri
Copy link
Contributor

dormeiri commented Mar 4, 2023

Absolute resource URL for local source is not working.

Steps to reproduce:

  1. Make a noodle config file with local source and absolute URL. (appendix 1 for example)
  2. noodle run

Expected

Scan is working, resource's source folder and relationships links are good.

Actual

Error: ENOENT: no such file or directory, scandir '/Users/***/monorepo/examples/basic/Users/***/noodle-graph/monorepo/examples/basic/someService'

As you can see the absolute path was concatanated with the current working directory.

Appendix 1 config example

{
    "resources": [
        {
            "id": "some-service",
            "url": "/Users/***/noodle-graph/monorepo/examples/basic/someService",
            "source": "local"
        }
    ]
}
@dormeiri dormeiri added bug Something isn't working good first issue Good for newcomers scanner Changes required in the scanner labels Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers scanner Changes required in the scanner
Projects
None yet
Development

No branches or pull requests

1 participant