Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented May 24, 2016

In #428 I'd misunderstood vbatts/pandoc as a call to a locally-installed pandoc, when it's actually the name of a Docker image. With this series, we prefer a local pandoc if one exists, fall back to Docker and vbatts/pandoc if a local docker exists, and raise an error if neither pandoc nor docker exist.

This is an alternative to #440, which reverts dc9daf9 and doesn't allow for a locally-installed pandoc.

wking added 2 commits May 23, 2016 22:31
Don't spam people with:

  make: command: Command not found

Signed-off-by: W. Trevor King <wking@tremily.us>
In dc9daf9 (Makefile: Replace vbatts/pandoc with a PANDOC variable
2016-05-06, opencontainers#428) I'd misunderstood vbatts/pandoc as a call to a
locally-installed pandoc, when it's actually the name of a Docker
image [1,2].  With this commit, we prefer a local pandoc if one
exists, fall back to Docker and vbatts/pandoc if a local 'docker'
exists, and raise an error if neither 'pandoc' nor 'docker' exist.

[1]: opencontainers#440
[2]: opencontainers#428 (comment)

Reported-by: Qiang Huang <h.huangqiang@huawei.com>
Reported-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
@wking wking mentioned this pull request May 24, 2016
-v $(shell pwd)/output/:/output/ \
-u $(shell id -u) \
$(PANDOC) -f markdown_github -t latex -o /$@ $(patsubst %,/input/%,$(DOC_FILES))
$(PANDOC) -f markdown_github -t latex -o $(PANDOC_DST)$@ $(patsubst %,$(PANDOC_SRC)%,$(DOC_FILES))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have local pandoc, should also set PANDOC_DST and PANDOC_SRC, otherwise they'll be empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty strings are the values we want for a native pandoc, but I can explicitly set them to empty strings if you like. Let me know if that's what you want.

@vbatts
Copy link
Member

vbatts commented May 25, 2016

Fixes #454

@vbatts
Copy link
Member

vbatts commented May 25, 2016

LGTM

@vbatts vbatts merged commit 23bf8e9 into opencontainers:master May 25, 2016
@laijs
Copy link
Contributor

laijs commented May 25, 2016

I think the default should be vbatts/pandoc.
we should produce the host-independent output in the default cases.

@vbatts
Copy link
Member

vbatts commented May 25, 2016

@laijs oh good point. I merged it because it's presently broken. Though for consistency sake that is a good point.

@wking
Copy link
Contributor Author

wking commented May 25, 2016

On Wed, May 25, 2016 at 05:19:53AM -0700, Lai Jiangshan wrote:

I think the default should be vbatts/pandoc.
we should produce the host-independent output in the default cases.

Unless we specify a specific version of vbatts/pandoc, I don't see how
it would be any more host-independent than a local pandoc.

@wking wking deleted the host-pandoc branch May 26, 2016 23:28
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

Successfully merging this pull request may close these issues.

4 participants