Git Product home page Git Product logo

Comments (6)

mit-mit avatar mit-mit commented on May 2, 2024 1

This is the example app, which demonstrated what a developer would do, and thus it's pubspec uses published deps.

from charts.

mit-mit avatar mit-mit commented on May 2, 2024

cc @cbbraun @lorrainekan

from charts.

lorrainekan avatar lorrainekan commented on May 2, 2024

It looks like what is happening here is caused by charts_flutter's dependency on charts_common is pulling from the published version instead of the latest code in charts_common. Changing the pubspec.yaml to point to the charts_common code in file will cause these errors to go away.

@mit-mit what is the best practice going forward? Always publishing charts_common every time we make a change doesn't seem to be the right way. Do we change pubspec.yaml to point to the file path? This means before we publish we would have to be careful about changing it back.

Issue #35 seem to be unrelated from this error and I am reopening that one.

from charts.

mit-mit avatar mit-mit commented on May 2, 2024

Yes, you have to publish them both if one depends on another, and common has a change. Pub always depends via published deps.

from charts.

lorrainekan avatar lorrainekan commented on May 2, 2024

Sure, that makes sense. But what we are seeing here is fetching the latest code here in github and trying to run it. The latest charts_flutter here is asking for charts_common from pub instead of from code.

It doesn't seem sustainable to publish charts_common every time we do a github sync?

from charts.

lorrainekan avatar lorrainekan commented on May 2, 2024

charts_common 0.2.0 and charts_flutter 0.2.0 both published.

from charts.

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.