Skip to content
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

flutter pub get error after nullsafety arrival #2

Closed
hawkbee1 opened this issue Nov 8, 2020 · 8 comments
Closed

flutter pub get error after nullsafety arrival #2

hawkbee1 opened this issue Nov 8, 2020 · 8 comments
Assignees

Comments

@hawkbee1
Copy link
Owner

hawkbee1 commented Nov 8, 2020

Because every version of flutter_driver from sdk depends on process 4.0.0-nullsafety.2 and screenshots 2.1.1 depends on process ^3.0.9, flutter_driver from sdk is incompatible with screenshots 2.1.1.
And because no versions of screenshots match >2.1.1 <3.0.0, flutter_driver from sdk is incompatible with screenshots ^2.1.1.
So, because bluevsred depends on both screenshots ^2.1.1 and flutter_driver any from sdk, version solving failed.
pub get failed (1; So, because bluevsred depends on both screenshots ^2.1.1 and flutter_driver any from sdk, version solving failed.)

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

/home/hawkbee/snap/flutter/common/flutter/bin/flutter --no-color pub outdated
Dependencies Current Upgradable Resolvable Latest
cloud_firestore *0.14.0+2 - - 0.14.3
cupertino_icons *1.0.0 - - 1.0.1
firebase_analytics *6.0.0 - - 6.2.0
firebase_auth *0.18.0+1 - - 0.18.3
firebase_core *0.5.0 - - 0.5.2
get_it *4.0.4 - - 5.0.1
mobx *1.2.1+2 - - 1.2.1+4
url_launcher *5.7.2 - - 5.7.10

dev_dependencies
mobx_codegen *1.1.0+1 - - 1.1.2
test *1.15.2 - - 1.15.4

transitive dependencies
cloud_firestore_platform_interface *2.0.1 - - 2.2.0
cloud_firestore_web *0.2.0+1 - - 0.2.1
firebase *7.3.0 - - 7.3.2
firebase_auth_platform_interface *2.0.1 - - 2.1.3
firebase_auth_web *0.3.0+1 - - 0.3.2
firebase_core_web *0.2.0 - - 0.2.1
matcher *0.12.8 - - 0.12.9
meta *1.1.8 - - 1.2.3
pedantic *1.9.0 - - 1.9.2
plugin_platform_interface *1.0.2 - - 1.0.3
quiver *2.1.3 - - 2.1.5
stack_trace *1.9.5 - - 1.9.6
url_launcher_linux *0.0.1+1 - - 0.0.1+4
url_launcher_macos *0.0.1+8 - - 0.0.1+9
url_launcher_platform_interface *1.0.8 - - 1.0.9
url_launcher_web *0.1.4+1 - - 0.1.5+1
url_launcher_windows *0.0.1+1 - - 0.0.1+3

transitive dev_dependencies
_fe_analyzer_shared *7.0.0 - - 12.0.0
analyzer *0.39.17 - - 0.40.6
build *1.3.0 - - 1.5.0
build_resolvers *1.3.11 - - 1.4.3
dart_style *1.3.6 - - 1.3.9
html *0.14.0+3 - - 0.14.0+4
json_rpc_2 *2.2.1 - - 2.2.2
node_interop *1.1.1 - - 1.2.0
source_gen *0.9.7+1 - - 0.9.8
test_api *0.2.17 - - 0.2.18
test_core *0.3.10 - - 0.3.11+1
vm_service *4.2.0 - - 5.5.0
vm_service_client *0.2.6+2 - - 0.2.6+3
webkit_inspection_protocol *0.7.3 - - 0.7.4

Dependencies are all constrained to the latest resolvable versions.
Newer versions, while available, are not mutually compatible.

@hawkbee1 hawkbee1 self-assigned this Nov 8, 2020
@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

After manually updating all package version :
Because every version of flutter_test from sdk depends on test_api 0.2.19-nullsafety.2 and test >=1.15.3 <1.16.0-nullsafety depends on test_api 0.2.18, flutter_test from sdk is incompatible with test >=1.15.3 <1.16.0-nullsafety.
So, because bluevsred depends on both test 1.15.4 and flutter_test any from sdk, version solving failed.
pub get failed (1; So, because bluevsred depends on both test 1.15.4 and flutter_test any from sdk, version solving failed.)

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

hawkbee@hawkbee-Strix-GL703GM-GL703GM:~/Documents/flutter/bluevsred$ flutter channel
Flutter channels:
master
dev

  • beta
    stable

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

Time to install fvm !
https://pub.dev/packages/fvm

... That was fast and easy to install

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

switching to channel stable doesn't solve the issue

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

with

dev_dependencies:
  screenshots: any
  flutter_driver:
    sdk: flutter
  test: any
  json_serializable: ^3.3.0
  mobx_codegen: ^1.1.2
  flutter_test:
    sdk: flutter

I obtain

`Dependencies                Current                Upgradable             Resolvable             Latest                
cupertino_icons             *1.0.0                 *1.0.0                 *1.0.0                 1.0.1                 

dev_dependencies           
screenshots                 *0.2.1                 *0.2.1                 *0.2.1                 2.1.1                 
test                        *1.16.0-nullsafety.5   *1.16.0-nullsafety.5   *1.16.0-nullsafety.5   1.16.0-nullsafety.9   

transitive dependencies    
async                       *2.5.0-nullsafety.1    *2.5.0-nullsafety.1    *2.5.0-nullsafety.1    2.5.0-nullsafety.3    
characters                  *1.1.0-nullsafety.3    *1.1.0-nullsafety.3    *1.1.0-nullsafety.3    1.1.0-nullsafety.5    
charcode                    *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    1.2.0-nullsafety.3    
collection                  *1.15.0-nullsafety.3   *1.15.0-nullsafety.3   *1.15.0-nullsafety.3   1.15.0-nullsafety.5   
firebase                    *7.3.0                 7.3.2                  7.3.2                  7.3.2                 
js                          *0.6.3-nullsafety.1    *0.6.3-nullsafety.1    *0.6.3-nullsafety.1    0.6.3-nullsafety.3    
matcher                     *0.12.10-nullsafety.1  *0.12.10-nullsafety.1  *0.12.10-nullsafety.1  0.12.10-nullsafety.3  
meta                        *1.3.0-nullsafety.4    *1.3.0-nullsafety.4    *1.3.0-nullsafety.4    1.3.0-nullsafety.6    
path                        *1.8.0-nullsafety.1    *1.8.0-nullsafety.1    *1.8.0-nullsafety.1    1.8.0-nullsafety.3    
pedantic                    *1.10.0-nullsafety.2   *1.10.0-nullsafety.2   *1.10.0-nullsafety.2   1.10.0-nullsafety.3   
plugin_platform_interface   *1.0.2                 1.0.3                  1.0.3                  1.0.3                 
quiver                      *2.1.3                 2.1.5                  2.1.5                  2.1.5                 
source_span                 *1.8.0-nullsafety.2    *1.8.0-nullsafety.2    *1.8.0-nullsafety.2    1.8.0-nullsafety.4    
stack_trace                 *1.10.0-nullsafety.2   *1.10.0-nullsafety.2   *1.10.0-nullsafety.2   1.10.0-nullsafety.6   
string_scanner              *1.1.0-nullsafety.1    *1.1.0-nullsafety.1    *1.1.0-nullsafety.1    1.1.0-nullsafety.3    
term_glyph                  *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    1.2.0-nullsafety.3    
typed_data                  *1.3.0-nullsafety.3    *1.3.0-nullsafety.3    *1.3.0-nullsafety.3    1.3.0-nullsafety.5    
url_launcher_linux          *0.0.1+1               0.0.1+4                0.0.1+4                0.0.1+4               
url_launcher_macos          *0.0.1+8               0.0.1+9                0.0.1+9                0.0.1+9               
url_launcher_windows        *0.0.1+1               0.0.1+3                0.0.1+3                0.0.1+3               
vector_math                 *2.1.0-nullsafety.3    *2.1.0-nullsafety.3    *2.1.0-nullsafety.3    2.1.0-nullsafety.5    

transitive dev_dependencies
_fe_analyzer_shared         *7.0.0                 12.0.0                 12.0.0                 12.0.0                
analyzer                    *0.39.17               0.40.6                 0.40.6                 0.40.6                
boolean_selector            *2.1.0-nullsafety.1    *2.1.0-nullsafety.1    *2.1.0-nullsafety.1    2.1.0-nullsafety.3    
build                       *1.3.0                 1.5.0                  1.5.0                  1.5.0                 
build_resolvers             *1.3.11                1.4.3                  1.4.3                  1.4.3                 
clock                       *1.1.0-nullsafety.1    *1.1.0-nullsafety.1    *1.1.0-nullsafety.1    1.1.0-nullsafety.3    
dart_style                  *1.3.6                 1.3.9                  1.3.9                  1.3.9                 
fake_async                  *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    *1.2.0-nullsafety.1    1.2.0-nullsafety.3    
file                        *6.0.0-nullsafety.2    *6.0.0-nullsafety.2    *6.0.0-nullsafety.2    6.0.0-nullsafety.4    
html                        *0.14.0+3              -                      -                      0.14.0+4              
node_interop                *1.1.1                 1.2.0                  1.2.0                  1.2.0                 
platform                    *3.0.0-nullsafety.2    *3.0.0-nullsafety.2    *3.0.0-nullsafety.2    3.0.0-nullsafety.4    
pool                        *1.5.0-nullsafety.2    *1.5.0-nullsafety.2    *1.5.0-nullsafety.2    1.5.0-nullsafety.3    
process                     *4.0.0-nullsafety.2    *4.0.0-nullsafety.2    *4.0.0-nullsafety.2    4.0.0-nullsafety.4    
source_gen                  *0.9.7+1               0.9.8                  0.9.8                  0.9.8                 
source_map_stack_trace      *2.1.0-nullsafety.3    *2.1.0-nullsafety.3    *2.1.0-nullsafety.3    2.1.0-nullsafety.4    
source_maps                 *0.10.10-nullsafety.2  *0.10.10-nullsafety.2  *0.10.10-nullsafety.2  0.10.10-nullsafety.3  
stream_channel              *2.1.0-nullsafety.1    *2.1.0-nullsafety.1    *2.1.0-nullsafety.1    2.1.0-nullsafety.3    
test_api                    *0.2.19-nullsafety.2   *0.2.19-nullsafety.2   *0.2.19-nullsafety.2   0.2.19-nullsafety.6   
test_core                   *0.3.12-nullsafety.5   *0.3.12-nullsafety.5   *0.3.12-nullsafety.5   0.3.12-nullsafety.9   
vm_service                  *4.2.0                 5.5.0                  5.5.0                  5.5.0                 
vm_service_client           *0.2.6+2               *0.2.6+2               *0.2.6+2               0.2.6+3               
webkit_inspection_protocol  *0.7.3                 0.7.4                  0.7.4                  0.7.4                 

15 upgradable dependencies are locked (in pubspec.lock) to older versions.
To update these dependencies, use `pub upgrade`.

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

screenshots version is too old with this configuration

@hawkbee1
Copy link
Owner Author

hawkbee1 commented Nov 8, 2020

Solved issue with use of any as version number for screenshots, flutter_test and test + overriding dependencies to allow last version of screenshots.
overrides solution :
mmcc007/screenshots#215 (comment)
They have a PR waiting for maintainer.
Since it's for testing part of the application I can let the project with overrides for now.

@hawkbee1 hawkbee1 closed this as completed Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant