bug: getLatest returning old data
andreisaikouski opened this issue Β· comments
Bug Report
Capacitor Version
π Capacitor Doctor π
Latest Dependencies:
@capacitor/cli: 5.4.2
@capacitor/core: 5.4.2
@capacitor/android: 5.4.2
@capacitor/ios: 5.4.2
Installed Dependencies:
@capacitor/cli: 5.2.3
@capacitor/core: 5.2.3
@capacitor/android: 5.2.3
@capacitor/ios: 5.2.3
[success] iOS looking great! π
[success] Android looking great! π
Plugin Version
PASTE OUTPUT HERE
context(s)
ManualModel: true
AutoMode: false
CapgoCloud: false
OnPremise: false
Self hosted on GCP
Platform(s)
iOS
Current Behavior
Having 2 channels (dev & prod), each with some of the same versions and some different. Prod channel is default
ie
dev: 1.0.343, 1.0.371
prod: 1.0.343
Calling getLatest
on dev
channel, returns "1.0.343" (prod) version even though it is not latest when my package.json>version is the same as dev latest. Can see this in web console as well:
Overall with my testing:
package.json>version: 1.0.350 -> getLatest() returns 1.0.343 from production channel
package.json>version: 1.0.371 -> getLatest() returns 1.0.343 from production channel
package.json>version: 1.0.372 -> getLatest() returns 1.0.371 from dev channel
Expected Behavior
A targetted channel should return latest version for that channel
Code Reproduction
Other Technical Details
npm --version
output: 9.6.7
node --version
output: v18.17.1
pod --version
output (iOS issues only): 1.12.1
Additional Context
Can we check than Monday together ?