Skip to content

Use latest mdbook version in CI #21

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

Conversation

austinglaser
Copy link
Contributor

Fixes #14

@austinglaser austinglaser requested review from korken89, ryankurte and a team as code owners November 12, 2019 02:26
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM

ci/install.sh Outdated
@@ -3,11 +3,10 @@ set -euxo pipefail
main() {
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \
| cut -d/ -f3 \
| grep -E '^v0.2.[0-9]+$' \
| grep -E '^v[0-9]+$' \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| grep -E '^v[0-9]+$' \
| grep -E '^v0.[0-9]+.[0-9]+$' \

Should probably something like this instead?

Copy link
Contributor Author

@austinglaser austinglaser Nov 12, 2019

Choose a reason for hiding this comment

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

Happy to.

I was modeling this of the way the same script works in the embedonomicon book - should I change it there too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think it would be better to pin it to the 0.3 series, so breaking changes have to be explicitly opted in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I updated to your suggestion. I still think it's worth debating:

  • Being more specific -- pinning to 0.3.x instead of 0.x.y
  • Doing this same pinning on other rust-embedded books

(initial comment was from wrong account; sorry)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And the first version had a stupid mistake. Updated again

Copy link
Contributor

Choose a reason for hiding this comment

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

Originally it was free IIRC. We only pinned it to 0.2.1 due to a problem with later versions.

@austinglaser austinglaser force-pushed the 14-back-out-hardcoded-mdbook-version branch from 3017a81 to 2b8029f Compare November 14, 2019 17:14
This pins mdbook to the 0.x.y series for now.
@austinglaser austinglaser force-pushed the 14-back-out-hardcoded-mdbook-version branch from 2b8029f to ba0f310 Compare November 18, 2019 17:14
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM

@therealprof therealprof merged commit c6cba56 into rust-embedded:master Nov 18, 2019
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.

Reminder: Back out hardcoded mdbook v0.2.1 version
3 participants