Giter Site home page Giter Site logo

Comments (11)

slawlor avatar slawlor commented on April 20, 2024 1

Ah found it searching the crates.io-index repo. There's a special handling for 3-char names.

https://github.com/rust-lang/crates.io-index/search?q=akd

yields a pointer to

https://raw.githubusercontent.com/rust-lang/crates.io-index/master/3/a/akd

from akd.

slawlor avatar slawlor commented on April 20, 2024 1

@eozturk1 Awesome! It'll need to be in the publish workflow: https://github.com/novifinancial/akd/blob/main/.github/workflows/publish.yml, which maybe it'd be worthwhile to make a version of the publish workflow which publishes a series of "beta" releases while you test this (e.g. for debugging)? We can land that new pipeline that could run with each merge to master w/tag for example, rather than on real releases.

from akd.

slawlor avatar slawlor commented on April 20, 2024

Some ideas to investigate

  1. Delay trying to dry-run build akd_mysql via some timeout, letting crates.io update in time. Or perhaps some polling loop?
  2. Maybe there's a flag to force a cargo update we're missing?

from akd.

slawlor avatar slawlor commented on April 20, 2024

An example of the publish CI pipeline failing for this reason

from akd.

eozturk1 avatar eozturk1 commented on April 20, 2024

Does the PR close the issue?

from akd.

slawlor avatar slawlor commented on April 20, 2024

Unfortunately not, that PR is an example of the problem.

from akd.

eozturk1 avatar eozturk1 commented on April 20, 2024

It seems there is no official solution to this. This issue suggests querying the published index at the Github repo crates-io.index as a hack but the corresponding akd index seems to be missing there. Any ideas why?

from akd.

slawlor avatar slawlor commented on April 20, 2024

OK so a little debugging, it works for akd_mysql with

https://raw.githubusercontent.com/rust-lang/crates.io-index/master/ak/d_/akd_mysql

but the url you put still has the d_ even though the crate akd doesn't have a _ in its name. There must be something wrong with the construction of that URI, I'm not sure where they build this but we need to see how they handle < 4 char long crate names. This could be a good potential solution however, with something like an exponential backoff in the polling times.

from akd.

slawlor avatar slawlor commented on April 20, 2024

It seems there is no official solution to this. This issue suggests querying the published index at the Github repo crates-io.index as a hack but the corresponding akd index seems to be missing there. Any ideas why?

@eozturk1 good catch on finding the related issue! It indeed is the same problem referenced there.

from akd.

eozturk1 avatar eozturk1 commented on April 20, 2024

Ah found it searching the crates.io-index repo. There's a special handling for 3-char names.

https://github.com/rust-lang/crates.io-index/search?q=akd

yields a pointer to

https://raw.githubusercontent.com/rust-lang/crates.io-index/master/3/a/akd

@slawlor, great find! Since we have akd's path now, we can implement a similar solution, working on it.

from akd.

eozturk1 avatar eozturk1 commented on April 20, 2024

No issues in the latest publish operation. Closing! :)

from akd.

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.