Giter VIP home page Giter VIP logo

Comments (3)

acmiyaguchi avatar acmiyaguchi commented on June 16, 2024

This issue is probably caused by the file timestamp being modified during build time. I bet this would be fixed if the build script only wrote to a file on a diff:

fn write_formatted_test(path: &std::path::PathBuf, suite: &TestSuite) {
println!("Formatting test: {:?}", path);
let formatted = serde_json::to_string_pretty(suite).unwrap();
let fp_write = File::create(path).unwrap();
write!(&fp_write, "{}\n", formatted).unwrap()
}

As a sanity check, cargo test followed by cargo package should be able to run without the --no-verify flag.

from jsonschema-transpiler.

acmiyaguchi avatar acmiyaguchi commented on June 16, 2024

Looking at this a bit further, this is actually caused by the generation of tests, as seen in this error message:

error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR. Modified file: /Users/amiyaguchi/Work/jsonschema-transpiler/target/package/jsonschema-transpiler-1.7.0/tests/transpile_bigquery.rs

Instead of generating tests, it may be better to dynamically read cases in a loop. However, this would lose being able to enumerate all of the tests.

from jsonschema-transpiler.

acmiyaguchi avatar acmiyaguchi commented on June 16, 2024

I recently ran cargo publish without running into this issue. The README should be updated to reflect that this is no longer an issue.

from jsonschema-transpiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.