-
Notifications
You must be signed in to change notification settings - Fork 639
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
docs: Lucene-Net-Documentation.yml - Automation is broken for API docs #1004
Comments
A few subtle corrections:
The current version of the script makes neither of these assumptions (apart from "so a dotnet tool restore will function"). As for "The docfx command is on the path" - that is definitely not an assumption, because of the above. The script was updated to use I agree that we can change the tool path location to be more reliable. |
What I meant was There are a few problems with this approach:
It is simpler to understand if the path is inside of our repo directory than to have it install it in some magic directory on the machine. We don't have to worry about whether the current CI environment knows where the tool is, because we know. It is very clear by looking at the script where the tool is. And we can be 100% sure we don't have to touch any settings on the environment to get it to function, so it will be portable across all environments. I am not sure why we would ever need to use |
I'm confused, I just tested locally removing docfx from my system and
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-tool-restore Now, whether or not this needs customization of the tool path to support running in a CI environment is a different story. But the command is certainly intended to install the tools, and at least locally it achieves this purpose.
The goal of this was so that we can specify the version in the dotnet-tools.json file instead of having to have them in sync across the docs and site ps1 files. |
Gotcha. Then there is something different about the GitHub Actions environment. I listed all of the files on the disk and it definitely wasn't installed. I also checked the |
Is there an existing issue for this?
Describe the bug
The automation doesn't work because the
docs.ps1
script makes assumptions that aren't true in CI:Expected Behavior
--tool-path
to set the install location, and use the same location (absolute path) to execute the tool.Steps To Reproduce
Run the workflow at: https://github.com/apache/lucenenet/actions/workflows/Lucene-Net-Documentation.yml on the master branch.
Exceptions (if any)
https://github.com/apache/lucenenet/actions/runs/11490755057
Workload updates are available. Run
dotnet workload list
for more information.Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.codecs.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.core.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-common.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-kuromoji.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-morfologik.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-opennlp.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-phonetic.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-smartcn.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.analysis-stempel.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.benchmark.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.classification.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.expressions.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.facet.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.grouping.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.icu.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.highlighter.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.join.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.memory.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.misc.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.queries.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.queryparser.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.replicator.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.sandbox.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.spatial.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.suggest.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.test-framework.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.demo.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.codecs.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Building api metadata for D:\a\lucenenet\lucenenet\main-repo\websites\apidocs\docfx.core.json...
Cannot find a tool in the manifest file that has a command named 'docfx'.
Lucene.NET Version
N/A
.NET Version
N/A
Operating System
windows-latest
Anything else?
No response
The text was updated successfully, but these errors were encountered: