Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Remove schemars pinning #182

Closed
wants to merge 2 commits into from

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Sep 5, 2022

Pinning was introduced using <= in the version number for schemars and dyn-clone, we would prefer to use pinning by way of the cargo update -p.

  • Remove the pinning from Cargo.toml.
  • Add pinning to CI
  • Document pinning in readme

Fix: #179

Note

To facilitate pinning this PR changes the package (and directory) name of the schemars test to be schemar - this is done so that pinning is possible without a naming conflict between the schemars dependency and the test package name.

@tcharding tcharding marked this pull request as ready for review September 5, 2022 04:24
@tcharding tcharding force-pushed the 09-05-pinning branch 5 times, most recently from 0055281 to 79bb744 Compare September 5, 2022 05:25
@tcharding
Copy link
Member Author

I give up for today, I'll try and get a green CI run tomorrow.

@tcharding
Copy link
Member Author

tcharding commented Sep 6, 2022

hmmm, extended/schemar tests pass using beta toolchain locally, any ideas why this would fail on CI?

---- tests::test_hash stdout ----
thread 'tests::test_hash' panicked at 'assertion failed: jsonschema_valid::Config::from_schema(&schema,\n None).unwrap().validate(&js).is_ok()', src/main.rs:154:9

@tcharding
Copy link
Member Author

Rebased.

Clippy emits various errors of form:

  error: this expression borrows a value the compiler would
  automatically borrow

As suggested, remove the unnecessary borrow.

FTR, this error shows up because of a clippy update (I believe).
Pinning was introduced using `<=` in the version number for `schemars`
and `dyn-clone`, we would prefer to use pinning by way of the
`cargo update -p`.

- Remove the pinning from `Cargo.toml`.
- Add pinning to CI
- Document pinning in readme
@tcharding
Copy link
Member Author

Includes #187

@tcharding
Copy link
Member Author

Closing in preparation for archiving this repo. See rust-bitcoin/rust-bitcoin#1284

@tcharding tcharding closed this Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency pinning is implemented incorrectly
1 participant