sphinx-action icon indicating copy to clipboard operation
sphinx-action copied to clipboard

Updated to use latest Sphinx version.

Open synchronizing opened this issue 4 years ago • 9 comments

Unsure if this will break for some users. If not accepted, I recommend at least creating a new release with version 3 so that users may do:

uses: ammaraskar/sphinx-action@v3

synchronizing avatar Dec 30 '20 16:12 synchronizing

Hmm, since this is a breaking change I wonder if there's a way to add this as an option in the action, so anyone can override the sphinx version with whatever they prefer.

ammaraskar avatar Dec 30 '20 19:12 ammaraskar

I've noticed that actions/upload-artifact can be used with @vX numbering at its end, like so:

    - name: Uploads the PDF build documentation
      uses: actions/upload-artifact@v2
      with:
        path: docs/build/latex/toolbox.pdf

By the looks of it, this correlates to the package releases. I'm unsure what package it would ultimately default to, but perhaps this is a solution.

synchronizing avatar Dec 31 '20 18:12 synchronizing

Right but a lot of people are pinned to @master right now, so even with the versioning it would break them.

ammaraskar avatar Jan 01 '21 00:01 ammaraskar

Right. New release, perhaps?

synchronizing avatar Jan 01 '21 23:01 synchronizing

Since builds are broken anyway due to the Base image change for Debian, I would say we go head, start tagging versions and break once. See for instance #32 #33.

ax3l avatar Sep 10 '21 17:09 ax3l

any news on this?

vale981 avatar Dec 07 '21 12:12 vale981

any news on this?

In my last few projects I've resorted to using my own branch. Unfortunately there seems to be preference of maintaining the older version (and therefore not breaking old packages that use this as a dependency), over updating this project (and breaking a few packages that might use it).

My take is simple. Create a release (v2) right now for Sphinx 2.4 (currently set), update Sphinx to its latest version at 4.3, and create a new release (v4) for Sphinx's version 4.3. Add a note the README with the specific error one would get in a repo which used 2.4, and simply tell them to add a @v2: actions/upload-artifact@v2.

synchronizing avatar Dec 07 '21 13:12 synchronizing

@ammaraskar

I'm trying to understand how updating the image is considered a "breaking change"?

For most users, the update won't break anything, they'll just get their docs built with a newer version, and probably benefit from the newer features provided by the upgraded version. That feels more like a positive than a negative, to me. There are a few users who might be negatively affected, but I suspect they're in the minority TBH. And if it causes problems, they can always switch to an older tag that works for them.

It seems especially odd worrying about the people who are using ammaraskar/sphinx-action@master, specifically. It would seem to me that carries an implicit understanding that the action will be updated over time, as it's explicitly requesting to track the latest release — not any specific version. Holding back your own master branch because it might impact those users who signed up to be impacted (though perhaps not knowingly, in all cases) just feels like misplaced concern, to be perfectly honest.

ferdnyc avatar Dec 30 '21 01:12 ferdnyc

All that being said, my idea in #40 for how to offer sphinxdoc/sphinx-latexpdf as an optional image may work for this, as well. Something in action.yml like...

inputs:
  sphinx4:
    description:
      Use a newer container image based on Sphinx 4.
    required: false
    default: false
runs:
  - using: 'docker'
    if: ${{ inputs.sphinx4 == false }}
    image: 'Dockerfile'
  - using: 'docker'
    if: ${{ inputs.sphinx4 == true }}
    image: 'Dockerfile.sphinx4'

would hopefully allow user selection of the base image.

(I guess I should go test that myself, now that I've mentioned it twice.)

ferdnyc avatar Dec 30 '21 01:12 ferdnyc