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

Make the target installation directory configurable via DTC_ROOT #1188

Open
wants to merge 1 commit into
base: ng
Choose a base branch
from

Conversation

obfischer
Copy link

@obfischer obfischer commented May 25, 2023

Changed environment variable DTC_ROOT to be configurable specify the parent directory the installation directory, which defaults the value of the environment variable HOME.

All Submissions:

  • Did you update the changelog.adoc?
  • Does your PR affect the documentation?
  • If yes, did you update the documentation or create an issue for updating it?

The source of the documentation can be found in /src/docs/.

If you didn't find the time to update docs, please create an issue as reminder to do so.

Your first submission

  • Welcome to the list of contributors! If you have any questions, feel free to ask them by creating a new issue
  • Have you added your name to the list of 30_community.adoc?

inspiration: https://github.com/stevemao/github-issue-templates

@netlify
Copy link

netlify bot commented May 25, 2023

Deploy Preview for dtc-docs-preview ready!

Name Link
🔨 Latest commit a49fee5
🔍 Latest deploy log https://app.netlify.com/sites/dtc-docs-preview/deploys/646f9d530a8f0d00081907c0
😎 Deploy Preview https://deploy-preview-1188--dtc-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@obfischer obfischer marked this pull request as draft May 25, 2023 17:33
Changed environment variable `DTC_ROOT` to be configurable specify the
parent directory the installation directory, which defaults the
value of the environment variable `HOME`.
@obfischer obfischer force-pushed the feature/custom-value-for-dtc-home branch from 9c380c5 to a49fee5 Compare May 25, 2023 17:39
@obfischer obfischer marked this pull request as ready for review May 25, 2023 17:42
Copy link
Collaborator

@mh182 mh182 left a comment

Choose a reason for hiding this comment

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

I would like to have test case(s) for the correct installation of docToolchain and Java when DTC_ROOT is provided as an alternative.

Look at the test/README.md how to add new tests. If you need help, drop me a line.

@@ -54,6 +54,7 @@ and this project tries to adhere to https://semver.org/spec/v2.0.0.html[Semantic
** 'org.openapi.generator:6.6.0'
** 'org.spockframework:spock-core:2.3-groovy-3.0'
* `dtcw` and `dtcw.ps1`:
** Changed environment variable `DTC_ROOT` to be configurable specify the parent directory the installation directory, which defaults the value of the environment variable `HOME`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I introduced DTC_ROOT as prerequisite to address #1062. Since DTC_ROOT was not accessible until now, I would change the description a bit. What about:

"Add new environment variable DTC_ROOT to make the docToolchain installation directory configurable. The default installation directory remains $HOME/.docoolchain.

Comment on lines +130 to +131
docToolchain will be installed below the directory specified via the environment variable `DTC_ROOT`, which defaults to `$HOME`.
To install docToolchain in `$DTC_ROOT/.doctoolchain` execute the following command.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is erroneous - check your code above. DTC_ROOT=${HOME}/.doctoolchain. I would rephrase the section above with something like:

"Using the wrapper script will install docToolchain into $HOME/.doctoolchain."

Your tip already provides all the information a user may need to change docToolchain's installation directory. So why explaining it redundantly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should move this paragraph just after the header. The Windows wrapper script dtcw.ps1 has to be changed as well.


[source, bash]
----
./dtcw install doctoolchain
----

In case you have no Java installed you may use `dtcw` to install Java in a sub-directory of `$HOME/.doctoolchain`.
In case you have no Java installed you may use `dtcw` to install Java in a sub-directory of `$DTC_ROOT/.doctoolchain`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Once again, DTC_ROOT points to $HOME/.doctoolchain. According to your documentation Java would be installed in $HOME/.doctoolchain/.doctoolchain.

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

2 participants