Adam Cameron
"fw1":"~4.2.0"
, which should only allow a maximum version of 4.2.β
, yet it just installed 4.3.0
for me again.
I'll try to just tie it down to a concrete 4.2.x
and see what happens...Adam Cameron
tonyjunkes
04/17/2022, 6:09 PMAdam Cameron
bdw429s
04/18/2022, 6:56 PMbox.json
for the latest stable version of FW/1 on ForgeBox (4.2.0) has the following`
"location": "framework-one/fw1#master",
Which basically means, "W_hen you install this version, this is where you go to find me_". However, if we go and look at what is on the master
branch in Github, we see the box.json
committed there doesn't match
"version":"4.3.0",
https://github.com/framework-one/fw1/blob/master/box.json#L4
So the location
of the 4.2.0
version of the package points to a place where the code for 4.3.0
lives which causes the issue. CommandBox will favor whatever version the downloaded code claims to be regardless of what version it was supposed to be on ForgeBox (though the two should never differ).bdw429s
04/18/2022, 6:56 PMmaster
branch as it will mean older version of the package will also just install whatever is in that branch regardless of what version you pointed to.Adam Cameron
tonyjunkes
04/18/2022, 6:58 PMAdam Cameron
bdw429s
04/18/2022, 6:58 PMbox.json
needs to point to a tag for each version
"location": "framework-one/fw1#v4.2.0",
or, better yet, just use the inbuilt S3 storage that is available now (which is basically how npm works). Changing the box.json
to either remove the location
tag entirely or change it to
"location": "forgeboxStorage",
will mean when Sean runs
box publish
it will zip up exactly the code right then and put that zip file on S3 and there's no Git cloning involved, which makes it actually faster to install.tonyjunkes
04/18/2022, 7:01 PMbdw429s
04/18/2022, 7:01 PMtonyjunkes
04/18/2022, 7:02 PMsneiland
04/18/2022, 9:28 PMsneiland
04/18/2022, 9:39 PMAdam Cameron
Adam Cameron
sneiland
04/18/2022, 10:20 PM