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

Md has not been committed yet. Lines are not counted ? #69

Open
dcaddick opened this issue Jan 21, 2023 · 9 comments
Open

Md has not been committed yet. Lines are not counted ? #69

dcaddick opened this issue Jan 21, 2023 · 9 comments

Comments

@dcaddick
Copy link

Hi Tim,

Apologies for a n00b question, but I've not been able to figure this issue out and I'm assuming it's something dumb that I have done?

WARNING - [git-authors-plugin] /tmp/mkdocs_simple_8fyj62vv/MDE.md has not been committed yet. Lines are not counted

image

Have I missed something in the docs, as this is simply being published to GitHub pages via an Action

@timvink
Copy link
Owner

timvink commented Jan 22, 2023

GitHub actions only uses a clone depth of 1. Can you try the suggestions mentioned here:

https://github.com/timvink/mkdocs-git-authors-plugin#note-when-using-build-environments?

@dcaddick
Copy link
Author

Thanks Tim,

Sorry - should have mentioned that - I have added this to my settings:
github actions: set fetch_depth to 0

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

@timvink
Copy link
Owner

timvink commented Jan 23, 2023

You're using checkout v2, can you try v3 (see here: https://github.com/actions/checkout)

But, I noticed in the screenshot that you are using the /tmp directory. The 'mkdocs_simple' thing might mean you are using mkdocs-simple-plugin ? That plugin actually does not support any plugins that use information from git, because the .git folder is not copied to the /tmp folder.

For more info, see: athackst/mkdocs-simple-plugin#466

@dcaddick
Copy link
Author

Thanks Tim,

That makes sense & appreciate the reply on the other thread now that I understand the .git info is not coming thru.

I'll try the checkoutv3 and reply here.

@dcaddick
Copy link
Author

You're using checkout v2, can you try v3 (see here: https://github.com/actions/checkout)

But, I noticed in the screenshot that you are using the /tmp directory. The 'mkdocs_simple' thing might mean you are using mkdocs-simple-plugin ? That plugin actually does not support any plugins that use information from git, because the .git folder is not copied to the /tmp folder.

For more info, see: athackst/mkdocs-simple-plugin#466

That being the case - any advice on suggested replacement that would be more reliable on bringing thru the git info?

@starhound
Copy link

Having this exact issue with mkdocs build when the docs dir is a submodule.

WARNING  -  [git-authors-plugin] /home/starhound/doctrina/docs/AinSoph/System Functions/Efuns/rmember.md has not been committed yet. Lines are not counted
WARNING  -  [git-authors-plugin] /home/starhound/doctrina/docs/AinSoph/System Functions/Efuns/rusage.md has not been committed yet. Lines are not counted
WARNING  -  [git-authors-plugin] /home/starhound/doctrina/docs/AinSoph/System Functions/Efuns/save_object.md has not been committed yet. Lines are not counted
WARNING  -  [git-authors-plugin] /home/starhound/doctrina/docs/AinSoph/System Functions/Efuns/save_value.md has not been committed yet. Lines are not counted
WARNING  -  [git-authors-plugin] /home/starhound/doctrina/docs/AinSoph/System Functions/Efuns/say.md has not been committed yet. Lines are not counted

@timvink
Copy link
Owner

timvink commented Feb 20, 2023

@starhound that's related to this issue: #43 , which is still open. Having small kids means a lot less this for open source hobby work -- I'm open to PRs though :)

@SilentGlasses
Copy link

I have the same issues but I do not use actions, I use cirecleci.

@alexeych0
Copy link

Is there a way to disable these logs?

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

No branches or pull requests

5 participants