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

Add dependencies (libs) from filesystem using env variables #1442

Open
iliyan-velichkov opened this issue Jun 24, 2024 · 1 comment
Open

Comments

@iliyan-velichkov
Copy link

Currently, when I want to add local (on the filesystem) dependencies (libs) for the transpilation and lint I add something like

abaplint.json:

{
    "global": {
        "files": "/{src/abap,test/src}/**/*.*",
        "skipGeneratedFunctionGroups": true,
        "skipGeneratedGatewayClasses": true,
        "skipGeneratedPersistentClasses": true
    },
    "dependencies": [
        {
            "files": "/**/*.*",
            "folder": "/../../../../root/registry/public/kronos/src/abap"
        }
    ],
...

abap_transpile.json:

{
  "input_folder": "{src/abap,test/src}",
  "input_filter": [],
  "output_folder": "dist/abap",
  "libs": [
    {
      "url": "https://github.com/open-abap/open-abap-core"
    },
    {
      "files": "/**/*.*",
      "folder": "/../../../../root/registry/public/kronos/src/abap"
    }
  ],
  "write_unit_tests": true,
  "write_source_map": true,
  "options": {
    "ignoreSyntaxCheck": false,
    "addFilenames": true,
    "addCommonJS": true,
    "unknownTypes": "runtimeError",
    "skip": []
  }
}

In our scenario this relative path may not be always valid.
That's why I want to be able to use environment variable in the folders value to specify the path of the sources.
For example something like the following

    {
      "files": "/**/*.*",
      "folder": "$KRONOS_ABAP_API_FOLDER"
    }

or

    {
      "files": "/**/*.*",
      "folder": "$KRONOS_API_FOLDER/abap"
    }
@larshp
Copy link
Member

larshp commented Jun 24, 2024

hmm, yea, well, hmm, why not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants