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

README.pod symlink to Perl module renders incorrectly #1253

Open
kiwiroy opened this issue Jan 23, 2019 · 16 comments
Open

README.pod symlink to Perl module renders incorrectly #1253

kiwiroy opened this issue Jan 23, 2019 · 16 comments

Comments

@kiwiroy
Copy link
Contributor

kiwiroy commented Jan 23, 2019

Opening a new issue in an attempt to shine some light on my last comment in #1158 and the behaviour observed rendering the README.pod here. I have a mixture of private repositories using the same technique that have a mix of success and failure in displaying the expected result and a minimal example of success here

The symlinks are detected as POD as reported here.

Running locally github-markup, pod2html converts as expected:

$ git rev-parse --short HEAD
8f436ff
$ bundle show | grep linguist
  * github-linguist (7.1.3)
$ bundle exec bin/github-markup ../applify/README.pod | head
<h1 id="NAME">NAME</h1>

<p>Applify - Write object oriented scripts with ease</p>

<h1 id="VERSION">VERSION</h1>

<p>0.15</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>
$ perl -v | head -n2 | tail -n1
This is perl 5, version 26, subversion 2 (v5.26.2) built for darwin-thread-multi-2level

I did some sanity checking in linguist with additional tests, they all passed.

@kiwiroy
Copy link
Contributor Author

kiwiroy commented Jan 25, 2019

I did some sanity checking in linguist with additional tests, they all passed.

Travis disagreed, but has since been convinced.

Investigating further in the simple repository listed above it is difficult to explain the results of the following three:

Could pod2html be failing occasionally, for some reason and consequently content is passed through in render:

def render(filename, content, options: {})
rendered = execute(command, content)
rendered = rendered.to_s.empty? ? content : rendered
call_block(rendered, content)
end

hoytech referenced this issue in hoytech/Log-Defer-Viz Feb 14, 2019
@symkat
Copy link

symkat commented Feb 19, 2019

I've also experienced this issue.

With no changes by me, my repos have gone from looking like this:

screen shot 2019-02-19 at 9 58 31 am

to looking like this:

screen shot 2019-02-19 at 9 58 47 am

@aarondcohen
Copy link

This is also affecting my repos. At first I thought it might be a result of the age of the code, but I ran it through github-markup and the results were fine. This is really frustrating...

@MCRayRay
Copy link

I've been trying to narrow this down to the smallest valid test case I can write and this is the best I've come up with so far.

This will render correctly:

=encoding UTF-8

=head1 NAME

=head1 FOO

This won't:

=encoding UTF-8

=head1 NAMD

=head1 FOO

I can't explain it.

p5sagit-sync pushed a commit to p5sagit/Distar that referenced this issue Apr 16, 2020
GitHub used to be able to read pod documentation from a symlink, even if
the target file is a different type.  This has been broken for a while
(github/markup#1253) so remove the symlink and
add a generated README.md file.
LemonBoy added a commit to LemonBoy/ldm that referenced this issue Jun 23, 2020
Shithub decided not to render symlinked pod files sometime in the past
year (github/markup#1253) so let's add a Markdown version generated by
pod2markdown.
@ANSI-C
Copy link

ANSI-C commented Jul 6, 2020

Having exact same issue with symlinks to PODs, it works in one case, it doesn't in another.

@Shelly1973
Copy link

Shelly1973 commented Jul 7, 2020 via email

@Shelly1973
Copy link

Can we split it

On Mon, Jul 6, 2020, 5:43 PM Anselmo Canfora @.***> wrote: Having exact same issue with symlinks to PODs, it works in one case, it doesn't in another. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1253 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFURVOVKR3YVJNM6F6CPQ3R2JARDANCNFSM4GR25FVA .
#1253 (comment)

@ap
Copy link

ap commented Oct 24, 2020

Here is a rather interesting data point: ap/Catalyst-View-Template@6318f66

I have a README.pod there which is failing to render… but this one doesn’t link to a .pm file. Instead I put the documentation in a separate .pod file and symlinked that – specifically to try and sidestep this bug. It seemed so obvious that this would work that I didn’t even do an experiment to verify before I used it. But it turns out that even this can fail.

Hopefully this is a new clue into the mystery of what is causing this bug… rather than an entirely separate second(ary) bug. Maybe it gives someone who has investigated this bug a lightbulb moment?

ap added a commit to ap/Catalyst-View-Template that referenced this issue Oct 27, 2020
This is a (just barely tolerably) ugly workaround for github/markup#1253
It should be reversed once that bug has been fixed.
ap added a commit to ap/URI-Signature-Tiny that referenced this issue Oct 27, 2020
This is a (just barely tolerably) ugly workaround for github/markup#1253
It should be reversed once that bug has been fixed.
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 28, 2024
@ap
Copy link

ap commented Nov 28, 2024

This bug continues to be present and it continues to be a problem. It has not magically gone away just because nobody fixed it in the meantime.

@ANSI-C
Copy link

ANSI-C commented Nov 28, 2024

This bug continues to be present and it continues to be a problem. It has not magically gone away just because nobody fixed it in the meantime.

Codeberg?

@ap
Copy link

ap commented Nov 28, 2024

Codeberg?

@github-actions github-actions bot removed the Stale label Nov 29, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Jan 29, 2025
@karenetheridge
Copy link

This is still a problem; please keep this open.

@github-actions github-actions bot removed the Stale label Jan 30, 2025
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Mar 31, 2025
@ap
Copy link

ap commented Mar 31, 2025

Here’s some further activity then.

@github-actions github-actions bot removed the Stale label Apr 1, 2025
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

8 participants