GithubHelp home page GithubHelp logo

Comments (3)

gumbarros avatar gumbarros commented on September 22, 2024 1

Weird, adding fetch-depth: 0 solved the problem, thank you very much. Feel free to close the issue if it's expected behavior

from docfx.

filzrev avatar filzrev commented on September 22, 2024

It seems following warnings are logged before CS8632 errors.

warning: [Failure] Msbuild failed when processing the file 'D:\a\ncalc\ncalc\src\NCalc\NCalc.csproj' with message: The "Nerdbank.GitVersioning.Tasks.GetBuildVersion" task failed unexpectedly.
Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change.

And by adding fetch-depth: 0 options to actions/checkout action. CS8632 errors seems resolved.

      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

Another problem I've noticed is that the docfx metadata command returns -1 as an exit code.
But next line of script is executed.

It's because GitHub windows runner use pwsh as default shell.
And pwsh don't stop on native command error by default.
(It need to set PSNativeCommandUseErrorActionPreference = $true to change behaviors)

from docfx.

gumbarros avatar gumbarros commented on September 22, 2024

I also tried to using Linux before Windows and had the same error, except Linux completely broke my pipeline, Windows at least publish my articles

from docfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.