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

having repository absolute root path as an env variable on build #90

Closed
bashiransari opened this issue Jun 8, 2018 · 1 comment
Closed

Comments

@bashiransari
Copy link
Contributor

Hi,
It's good to have access the mono repo absolute root path in build/custom-command runtime as an environment variable (e.g. MBT_REPO_PATH or MBT_ROOT_PATH) just like MBT_MODULE_NAME and MBT_MODULE_VERSION
Also we can have MBT_MODULE_PATH to get the current module path (relative to root path) as well.

@buddhike
Copy link
Member

Thanks to @bashiransari, this landed on master today 2af9407

@bashiransari Should we include MBT_MODULE_PATH as well to complete the issue?

buddhike pushed a commit to buddhike/mbt that referenced this issue Jun 16, 2018
When running the build or commands we populate two new
environment variables as below:

```
MBT_MODULE_PATH - Relative path to module
MBT_REPO_PATH - Absolute path to repository
```

The path normalisation happens in ManifestBuilder to
make it widely available for rest of the system.

Closes mbtproject#90
buddhike pushed a commit that referenced this issue Jun 16, 2018
When running the build or commands we populate two new
environment variables as below:

```
MBT_MODULE_PATH - Relative path to module
MBT_REPO_PATH - Absolute path to repository
```

The path normalisation happens in ManifestBuilder to
make it widely available for rest of the system.

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

No branches or pull requests

2 participants