-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installed version in lib
does not match version in shard.lock
#581
Comments
I cannot reproduce this behaviour. I'm using a fresh docker image to exclude any outside influences. $ docker run --rm -it crystallang/crystal:1.7.2 /bin/bash
root@2ff99339acfd:/# mkdir -p /app && cd app
root@2ff99339acfd:/app# cat > shard.yml
name: pre-release
version: 0.1.0
dependencies:
lucky:
github: luckyframework/lucky
version: 1.0.0-rc1
avram:
github: luckyframework/avram
version: 1.0.0-rc1
root@2ff99339acfd:/app# shards install
Resolving dependencies
Fetching https://github.com/luckyframework/lucky.git
Fetching https://github.com/luckyframework/avram.git
Fetching https://github.com/luckyframework/lucky_task.git
Fetching https://github.com/luckyframework/habitat.git
Fetching https://github.com/luckyframework/wordsmith.git
Fetching https://github.com/luckyframework/lucky_router.git
Fetching https://github.com/luckyframework/shell-table.cr.git
Fetching https://github.com/luckyframework/cry.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/luckyframework/dexter.git
Fetching https://github.com/luckyframework/pulsar.git
Fetching https://github.com/luckyframework/teeplate.git
Fetching https://github.com/will/crystal-pg.git
Fetching https://github.com/luckyframework/lucky_cache.git
Fetching https://github.com/cadmiumcr/transliterator.git
Fetching https://github.com/sija/backtracer.cr.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/wyhaines/splay_tree_map.cr.git
Installing lucky_task (0.1.1)
Installing habitat (0.4.7)
Installing wordsmith (0.4.0)
Installing lucky_router (0.5.2)
Installing shell-table (0.9.3)
Installing cry (0.4.3)
Installing backtracer (1.2.2)
Installing exception_page (0.3.0)
Installing dexter (0.3.4)
Installing pulsar (0.2.3)
Installing teeplate (0.8.5)
Installing lucky (1.0.0-rc1)
Postinstall of lucky: BUILD_WITHOUT_DEVELOPMENT=true script/precompile_tasks
Installing db (0.11.0)
Installing pg (0.26.0)
Installing splay_tree_map (0.2.2)
Installing lucky_cache (0.1.1)
Installing cadmium_transliterator (0.1.0 at 46c4c14)
Installing avram (1.0.0-rc1)
Postinstall of avram: BUILD_WITHOUT_DEVELOPMENT=true script/precompile_tasks
Writing shard.lock
root@2ff99339acfd:/app# head -n2 lib/{avram,lucky}/shard.yml
==> lib/avram/shard.yml <==
name: avram
version: 1.0.0-rc1
==> lib/lucky/shard.yml <==
name: lucky
version: 1.0.0-rc1 It's likely that some things have changed in the lucky and avram repositories. @jwoertink As I can see the |
P.S. Apparently the version in |
Hmm that's strange. Yeah, I did the release on March 12th, but on March 14th was when I was having the issue. I was clearing cache, removing files, and all kinds of stuff, but could not get it to pull 1.0.0-rc1 for the life of me. Oddly enough, I also can't recreate it now.... so, I'll chalk it up to Monday morning goblins in my computer at that time 🙃 Thanks for the follow up, I think we can close this out. |
Originally posted by @jwoertink in #572 (comment)
I [@jwoertink] did a soft release of Lucky and Avram 1.0.0 over the weekend, and now my apps won't pull 1.0.0-rc1 anymore.
My shard.yml file has this:
I run
rm -rf lib/ shard.lock ~/.cache/
thenshards install
. When it's installing, I see this:My shard.lock file has the correct version:
Running
shards list --tree
shows the correct listbut the actual versions that show up in
lib
are wrong...These are installing
1.0.0
and not1.0.0-rc1
even though it's saying that it is.Now one very strange thing is, after I run
shards install
, if Irm -rf lib/lucky/
thenshards update lucky
that will install the rc1 version. It only installs the wrong version onshards install
andshards update
.Edit: using shards
0.17.2
The text was updated successfully, but these errors were encountered: