atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
988 stars 46 forks source link

CI publish-crates action wrong versions #504

Open joepio opened 2 years ago

joepio commented 2 years ago

See this action for example

Run katyo/publish-crates@v1
Searching cargo packages at '.'
Found packages: atomic-server, atomic-cli, atomic_lib, atomic-server-tauri
Checking packages consistency
Error: Package 'atomic-server' depends from internal 'atomic_lib' with version '0.33.0' but actual version is '0.33.1'
Error: Package 'atomic-cli' depends from internal 'atomic_lib' with version '0.33.0' but actual version is '0.33.1'
Error: Package 'atomic-server-tauri' depends from internal 'atomic-server' with version '0.33.0' but actual version is '0.33.1'
Error: Unable to determine latest modification time for local package 'atomic-cli' due to: 'TypeError: Cannot destructure property 'edges' of 'result.repository.ref.target.history' as it is undefined.'
Error: Error: 4 packages consistency error(s) found

I thought the katyo/publish-crates action deals with these dependencies, publishing the deepest dependencies first. Maybe I've misconfigured something.

joepio commented 2 years ago

Hmm, it appears the verions of the deps weren't updated last time. I guess I could try removing the version numbers there.

joepio commented 2 years ago

I guess I could try removing the version numbers there.

That didn't work.

Even if I manually match all versions, I get this:

     Updating crates.io index
   Packaging atomic-server v0.33.1 (/home/runner/work/atomic-data-rust/atomic-data-rust/server)
error: failed to prepare local package for uploading

Caused by:
  failed to select a version for the requirement `atomic_lib = "^0.33.1"`
  candidate versions found which didn't match: 0.33.0, 0.32.1, 0.32.0, ...
  location searched: crates.io index
  required by package `atomic-server v0.33.1 (/home/runner/work/atomic-data-rust/atomic-data-rust/server)`
Error: Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101

Which basically means that lib isn't uploaded.