dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.05k stars 230 forks source link

Problem with file-listing for publishing using Git on Windows #4411

Closed Cod-e-Codes closed 1 week ago

Cod-e-Codes commented 1 month ago
Information about the latest pub run.

If you believe something is not working right, you can go to
https://github.com/dart-lang/pub/issues/new to post a new issue and attach this file.

Before making this file public, make sure to remove any sensitive information!

Pub version: 3.5.1
Created: 2024-10-11T20:59:47.623032
FLUTTER_ROOT: C:\dev\flutter
PUB_HOSTED_URL: <not set>
PUB_CACHE: "<not set>"
Command: dart pub --suppress-analytics publish --dry-run
Platform: windows

---- C:\Users\codyl\AndroidStudioProjects\flutter_scroll_animation\pubspec.yaml ----
name: flutter_scroll_animation
description: >
  A Flutter package that provides scroll-driven animations. Widgets become visible 
  and animate into view when they enter the viewport, enabling smooth and dynamic UI transitions.
version: 0.0.1
homepage: https://github.com/cod-e-codes/flutter_scroll_animation
repository: https://github.com/cod-e-codes/flutter_scroll_animation
issue_tracker: https://github.com/cod-e-codes/flutter_scroll_animation/issues

environment:
  sdk: ">=3.5.1 <4.0.0"
  flutter: ">=1.17.0"

dependencies:
  flutter:
    sdk: flutter
  visibility_detector: ^0.4.0+2

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^5.0.0

flutter:
  uses-material-design: true

---- End pubspec.yaml ----
---- C:\Users\codyl\AndroidStudioProjects\flutter_scroll_animation\pubspec.lock ----
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  async:
    dependency: transitive
    description:
      name: async
      sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
      url: "https://pub.dev"
    source: hosted
    version: "2.11.0"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  characters:
    dependency: transitive
    description:
      name: characters
      sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.0"
  clock:
    dependency: transitive
    description:
      name: clock
      sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
      url: "https://pub.dev"
    source: hosted
    version: "1.1.1"
  collection:
    dependency: transitive
    description:
      name: collection
      sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
      url: "https://pub.dev"
    source: hosted
    version: "1.18.0"
  fake_async:
    dependency: transitive
    description:
      name: fake_async
      sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.1"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_lints:
    dependency: "direct dev"
    description:
      name: flutter_lints
      sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
      url: "https://pub.dev"
    source: hosted
    version: "5.0.0"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  leak_tracker:
    dependency: transitive
    description:
      name: leak_tracker
      sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
      url: "https://pub.dev"
    source: hosted
    version: "10.0.5"
  leak_tracker_flutter_testing:
    dependency: transitive
    description:
      name: leak_tracker_flutter_testing
      sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.5"
  leak_tracker_testing:
    dependency: transitive
    description:
      name: leak_track[...]    dependency: transitive
    description:
      name: path
      sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
      url: "https://pub.dev"
    source: hosted
    version: "1.9.0"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.99"
  source_span:
    dependency: transitive
    description:
      name: source_span
      sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
      url: "https://pub.dev"
    source: hosted
    version: "1.10.0"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
      url: "https://pub.dev"
    source: hosted
    version: "1.11.1"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
      url: "https://pub.dev"
    source: hosted
    version: "2.1.2"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.0"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
      url: "https://pub.dev"
    source: hosted
    version: "1.2.1"
  test_api:
    dependency: transitive
    description:
      name: test_api
      sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
      url: "https://pub.dev"
    source: hosted
    version: "0.7.2"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  visibility_detector:
    dependency: "direct main"
    description:
      name: visibility_detector
      sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
      url: "https://pub.dev"
    source: hosted
    version: "0.4.0+2"
  vm_service:
    dependency: transitive
    description:
      name: vm_service
      sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
      url: "https://pub.dev"
    source: hosted
    version: "14.2.5"
sdks:
  dart: ">=3.5.1 <4.0.0"
  flutter: ">=3.18.0-18.0.pre.54"

---- End pubspec.lock ----
---- Log transcript ----
FINE: Pub 3.5.1
SLVR: fact: flutter_scroll_animation is 0.0.1
SLVR: derived: flutter_scroll_animation
SLVR: fact: flutter_scroll_animation depends on flutter from sdk
SLVR: fact: flutter_scroll_animation depends on visibility_detector ^0.4.0+2
SLVR: fact: flutter_scroll_animation depends on flutter_test from sdk
SLVR: fact: flutter_scroll_animation depends on flutter_lints ^5.0.0
SLVR:   selecting flutter_scroll_animation
SLVR:   derived: flutter_lints ^5.0.0
SLVR:   derived: flutter_test from sdk
SLVR:   derived: visibility_detector ^0.4.0+2
SLVR:   derived: flutter from sdk
SLVR:   fact: flutter_lints 5.0.0 depends on lints ^5.0.0
SLVR:     selecting flutter_lints 5.0.0
SLVR:     derived: lints ^5.0.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on flutter from sdk
SLVR:     fact: flutter_test 0.0.0 from sdk depends on test_api 0.7.2
SLVR:     fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.16+1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on path 1.9.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on fake_async 1.3.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on clock 1.1.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.11.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on vector_math 2.1.4
SLVR:     fact: flutter_test 0.0.0 from sdk depends on leak_tracker_flutter_testing 3.0.5
SLVR:     fact: flutter_test 0.0.0 from sdk depends on async 2.11.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on boolean_selector 2.1.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on characters 1.3.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on collection 1.18.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on leak_tracker 10.0.5
SLVR:     fact: flutter_test 0.0.0 from sdk depends on leak_tracker_testing 3.0.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on material_color_utilities 0.11.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on meta 1.15.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on source_span 1.10.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.1.2
SLVR:     fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.2.0
SLVR:     fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.2.1
SLVR:     fact: flutter_test 0.0.0 from sdk depends on vm_service 14.2.5
SLVR:       selecting flutter_test 0.0.0 from sdk
SLVR:       derived: vm_service 14.2.5
SLVR:       derived: term_glyph 1.2.1
SLVR:       derived: string_scanner 1.2.0
SLVR:       derived: stream_channel 2.1.2
SLVR:       derived: source_span 1.10.0
SLVR:       derived: meta 1.15.0
SLVR:       derived: material_color_utilities 0.11.1
SLVR:       derived: leak_tracker_testing 3.0.1
SLVR:       derived: leak_tracker 10.0.5
SLVR:       derived: collection 1.18.0
SLVR:       derived: characters 1.3.0
SLVR:       derived: boolean_selector 2.1.1
SLVR:       derived: async 2.11.0
SLVR:       derived: leak_tracker_flutter_testing 3.0.5
SLVR:       derived: vector_math 2.1.4
SLVR:       derived: stack_trace 1.11.1
SLVR:       derived: clock 1.1.1
SLVR:       derived: fake_async 1.3.1
SLVR:       derived: path 1.9.0
SLVR:       derived: matcher 0.12.16+1
SLVR:       derived: test_api 0.7.2
SLVR:       fact: visibility_detector 0.4.0+2 depends on flutter from sdk
SLVR:         selecting visibility_detector 0.4.0+2
SLVR:         fact: flutter 0.0.0 from sdk depends on characters 1.3.0
SLVR:         fact: flutter 0.0.0 from sdk depends on collection 1.18.0
SLVR:         fact: flutter 0.0.0 from sdk depends on material_color_utilities 0.11.1
SLVR:         fact: flutter 0.0.0 from sdk depends on meta 1.15.0
SLVR:         fact: flutter 0.0.0 from sdk depends on vector_math 2.1.4
SLVR:         fact: flutter 0.0.0 from sdk depends on sky_engine from sdk
SLVR:           selecting flutter 0.0.0 from sdk
SLVR:           derived: sky_engine from sdk
SLVR:             selecting lints 5.0.0
SLVR:               selecting vm_service 14.2.5
SLVR:                 selecting term_glyph 1.2.1
SLVR:                 fact: string_scanner 1.2.0 depends on source_span ^1.8.0
SLVR:                   selecting string_scanner 1.2.0
SLVR:                   fact: stream_channel 2.1.2 depends on async ^2.5.0
SLVR:                     selecting stream_channel 2.1.2
SLVR:                     fact: source_span 1.10.0 depends on collection ^1.15.0
SLVR:                     fact: source_span 1.10.0 depends on path ^1.8.0
SLVR:                     fact: source_span 1.10.0 depends on term_glyph ^1.2.0
SLVR:                       selecting source_span 1.10.0
SLVR:                         selecting meta 1.15.0
SLVR:                         fact: material_color_utilities 0.11.1 depends on collection ^1.15.0
SLVR:                           selecting material_color_utilities 0.11.1
SLVR:                           fact: leak_tracker_testing 3.0.1 depends on leak_tracker >=9.0.0 <11.0.0
SLVR:                           fact: leak_tracker_testing 3.0.1 depends on matcher ^0.12.16
SLVR:                           fact: leak_tracker_testing 3.0.1 depends on meta ^1.11.0
SLVR:                             selecting leak_tracker_testing 3.0.1
SLVR:                             fact: leak_tracker 10.0.5 depends on clock ^1.1.1
SLVR:                             fact: leak_tracker 10.0.5 depends on collection ^1.15.0
SLVR:                             fact: leak_tracker 10.0.5 depends on meta ^1.8.0
SLVR:                             fact: leak_tracker 10.0.5 depends on path ^1.8.3
SLVR:                             fact: leak_tracker 10.0.5 depends on vm_service >=11.10.0 <15.0.0
SLVR:                               selecting leak_tracker 10.0.5
SLVR:                                 selecting collection 1.18.0
SLVR:                                   selecting characters 1.3.0
SLVR:                                   fact: boolean_selector 2.1.1 depends on source_span ^1.8.0
SLVR:                                   fact: boolean_selector 2.1.1 depends on string_scanner ^1.1.0
SLVR:                                     selecting boolean_selector 2.1.1
SLVR:                                     fact: async 2.11.0 depends on collection ^1.15.0
SLVR:                                     fact: async 2.11.0 depends on meta ^1.1.7
SLVR:                                       selecting async 2.11.0
SLVR:                                       fact: leak_tracker_flutter_testing 3.0.5 depends on flutter from sdk
SLVR:                                       fact: leak_tracker_flutter_testing 3.0.5 depends on leak_tracker ^10.0.5
SLVR:                                       fact: leak_tracker_flutter_testing 3.0.5 depends on leak_tracker_testing ^3.0.1
SLVR:                                       fact: leak_tracker_flutter_testing 3.0.5 depends on matcher ^0.12.16
SLVR:                                       fact: leak_tracker_flutter_testing 3.0.5 depends on meta ^1.8.0
SLVR:                                         selecting leak_tracker_flutter_testing 3.0.5
SLVR:                                           selecting vector_math 2.1.4
SLVR:                                           fact: stack_trace 1.11.1 depends on path ^1.8.0
SLVR:                                             selecting stack_trace 1.11.1
SLVR:                                               selecting clock 1.1.1
SLVR:                                               fact: fake_async 1.3.1 depends on clock ^1.1.0
SLVR:                                               fact: fake_async 1.3.1 depends on collection ^1.15.0
SLVR:                                                 selecting fake_async 1.3.1
SLVR:                                                   selecting path 1.9.0
SLVR:                                                   fact: matcher 0.12.16+1 depends on async ^2.10.0
SLVR:                                                   fact: matcher 0.12.16+1 depends on meta ^1.8.0
SLVR:                                                   fact: matcher 0.12.16+1 depends on stack_trace ^1.10.0
SLVR:                                                   fact: matcher 0.12.16+1 depends on term_glyph ^1.2.0
SLVR:                                                   fact: matcher 0.12.16+1 depends on test_api >=0.5.0 <0.8.0
SLVR:                                                     selecting matcher 0.12.16+1
SLVR:                                                     fact: test_api 0.7.2 depends on async ^2.5.0
SLVR:                                                     fact: test_api 0.7.2 depends on boolean_selector ^2.1.0
SLVR:                                                     fact: test_api 0.7.2 depends on collection ^1.15.0
SLVR:                                                     fact: test_api 0.7.2 depends on meta ^1.14.0
SLVR:                                                     fact: test_api 0.7.2 depends on source_span ^1.8.0
SLVR:                                                     fact: test_api 0.7.2 depends on stack_trace ^1.10.0
SLVR:                                                     fact: test_api 0.7.2 depends on stream_channel ^2.1.0
SLVR:                                                     fact: test_api 0.7.2 depends on string_scanner ^1.1.0
SLVR:                                                     fact: test_api 0.7.2 depends on term_glyph ^1.2.0
SLVR:                                                       selecting test_api 0.7.2
SLVR:                                                         selecting sky_engine 0.0.99 from sdk
SLVR: Version solving took 0:00:00.146031 seconds.
    | Tried 1 solutions.
FINE: Resolving dependencies finished (0.1s).
FINE: Downloading packages finished (0.0s).
MSG :   collection 1.18.0 (1.19.0 available)
    |   leak_tracker 10.0.5 (10.0.7 available)
    |   leak_tracker_flutter_testing 3.0.5 (3.0.8 available)
    |   lints 5.0.0 (5.1.0 available)
    |   material_color_utilities 0.11.1 (0.12.0 available)
    |   meta 1.15.0 (1.16.0 available)
    |   stack_trace 1.11.1 (1.12.0 available)
    |   string_scanner 1.2.0 (1.3.0 available)
    |   test_api 0.7.2 (0.7.3 available)
    |   vm_service 14.2.5 (14.3.0 available)
MSG : Got dependencies!
MSG : 10 packages have newer versions incompatible with dependency constraints.
    | Try `flutter pub outdated` for more information.
IO  : Writing 6088 characters to text file pubspec.lock.
FINE: Contents:
    | # Generated by pub
    | # See https://dart.dev/tools/pub/glossary#lockfile
    | packages:
    |   async:
    |     dependency: transitive
    |     description:
    |       name: async
    |       sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.11.0"
    |   boolean_selector:
    |     dependency: transitive
    |     description:
    |       name: boolean_selector
    |       sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.1"
    |   characters:
    |     dependency: transitive
    |     description:
    |       name: characters
    |       sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.3.0"
    |   clock:
    |     dependency: transitive
    |     description:
    |       name: clock
    |       sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.1.1"
    |   collection:
    |     dependency: transitive
    |     description:
    |       name: collection
    |       sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.18.0"
    |   fake_async:
    |     dependency: transitive
    |     description:
    |       name: fake_async
    |       sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.3.1"
    |   flutter:
    |     dependency: "direct main"
    |     description: flutter
    |     source: sdk
    |     version: "0.0.0"
    |   flutter_lints:
    |     dependency: "direct dev"
    |     description:
    |       name: flutter_lints
    |       sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "5.0.0"
    |   flutter_test:
    |     dependency: "direct dev"
    |     description: flutter
    |     source: sdk
    |     version: "0.0.0"
    |   leak_tracker:
    |     dependency: transitive
    |     description:
    |       name: leak_tracker
    |       sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "10.0.5"
    |   leak_tracker_flutter_testing:
    |     dependency: transitive
    |     description:
    |       name: leak_tracker_flutter_testing
    |       sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "3.0.5"
    |   leak_tracker_testing:
    |     dependency: transitive
    |     description:
    |       name: leak_tracker_testing
    |       sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "3.0.1"
    |   lints:
    |     dependency: transitive
    |     description:
    |       name: lints
    |       sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "5.0.0"
    |   matcher:
    |     dependency: transitive
    |     description:
    |       name: matcher
    |       sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.12.16+1"
    |   material_color_utilities:
    |     dependency: transitive
    |     description:
    |       name: material_color_utilities
    |       sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.11.1"
    |   meta:
    |     dependency: transitive
    |     description:
    |       name: meta
    |       sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.15.0"
    |   path:
    |     dependency: transitive
    |     description:
    |       name: path
    |       sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.9.0"
    |   sky_engine:
    |     dependency: transitive
    |     description: flutter
    |     source: sdk
    |     version: "0.0.99"
    |   source_span:
    |     dependency: transitive
    |     description:
    |       name: source_span
    |       sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.10.0"
    |   stack_trace:
    |     dependency: transitive
    |     description:
    |       name: stack_trace
    |       sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.11.1"
    |   stream_channel:
    |     dependency: transitive
    |     description:
    |       name: stream_channel
    |       sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.2"
    |   string_scanner:
    |     dependency: transitive
    |     description:
    |       name: string_scanner
    |       sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.2.0"
    |   term_glyph:
    |     dependency: transitive
    |     description:
    |       name: term_glyph
    |       sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "1.2.1"
    |   test_api:
    |     dependency: transitive
    |     description:
    |       name: test_api
    |       sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.7.2"
    |   vector_math:
    |     dependency: transitive
    |     description:
    |       name: vector_math
    |       sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "2.1.4"
    |   visibility_detector:
    |     dependency: "direct main"
    |     description:
    |       name: visibility_detector
    |       sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "0.4.0+2"
    |   vm_service:
    |     dependency: transitive
    |     description:
    |       name: vm_service
    |       sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
    |       url: "https://pub.dev"
    |     source: hosted
    |     version: "14.2.5"
    | sdks:
    |   dart: ">=3.5.1 <4.0.0"
    |   flutter: ">=3.18.0-18.0.pre.54"
IO  : Writing 5798 characters to text file .dart_tool\package_config.json.
FINE: Contents:
    | {
    |   "configVersion": 2,
    |   "packages": [
    |     {
    |       "name": "async",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.11.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "boolean_selector",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "characters",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.3.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "clock",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "collection",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.18.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "fake_async",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "flutter",
    |       "rootUri": "file:///C:/dev/flutter/packages/flutter",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.3"
    |     },
    |     {
    |       "name": "flutter_lints",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.5"
    |     },
    |     {
    |       "name": "flutter_test",
    |       "rootUri": "file:///C:/dev/flutter/packages/flutter_test",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.3"
    |     },
    |     {
    |       "name": "leak_tracker",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.5",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.2"
    |     },
    |     {
    |       "name": "leak_tracker_flutter_testing",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.5",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.2"
    |     },
    |     {
    |       "name": "leak_tracker_testing",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.2"
    |     },
    |     {
    |       "name": "lints",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.0.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.5"
    |     },
    |     {
    |       "name": "matcher",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.16+1",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.0"
    |     },
    |     {
    |       "name": "material_color_utilities",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.17"
    |     },
    |     {
    |       "name": "meta",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.15.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "path",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.0"
    |     },
    |     {
    |       "name": "sky_engine",
    |       "rootUri": "file:///C:/dev/flutter/bin/cache/pkg/sky_engine",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.2"
    |     },
    |     {
    |       "name": "source_span",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "stack_trace",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.11.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "stream_channel",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.2",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.19"
    |     },
    |     {
    |       "name": "string_scanner",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.2.0",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.18"
    |     },
    |     {
    |       "name": "term_glyph",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.1",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "test_api",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.2",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.2"
    |     },
    |     {
    |       "name": "vector_math",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.14"
    |     },
    |     {
    |       "name": "visibility_detector",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/visibility_detector-0.4.0+2",
    |       "packageUri": "lib/",
    |       "languageVersion": "2.12"
    |     },
    |     {
    |       "name": "vm_service",
    |       "rootUri": "file:///C:/Users/codyl/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-14.2.5",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.3"
    |     },
    |     {
    |       "name": "flutter_scroll_animation",
    |       "rootUri": "../",
    |       "packageUri": "lib/",
    |       "languageVersion": "3.5"
    |     }
    |   ],
    |   "generated": "2024-10-12T00:59:47.494689Z",
    |   "generator": "pub",
    |   "generatorVersion": "3.5.1",
    |   "flutterRoot": "file:///C:/dev/flutter",
    |   "flutterVersion": "3.24.1",
    |   "pubCache": "file:///C:/Users/codyl/AppData/Local/Pub/Cache"
    | }
IO  : Spawning "cmd /c git --version" in C:\Users\codyl\AndroidStudioProjects\flutter_scroll_animation\.
IO  : Finished cmd. Exit code 0.
    | stdout:
    | | git version 2.44.0
    | Nothing output on stderr.
FINE: Determined git command git.
IO  : Spawning "cmd /c git rev-parse --show-toplevel" in C:\Users\codyl\AndroidStudioProjects\flutter_scroll_animation\.
IO  : Finished cmd. Exit code 0.
    | stdout:
    | | /c/Users/codyl/AndroidStudioProjects/flutter_scroll_animation
    | Nothing output on stderr.
ERR : Invalid argument (beneath): ../../../../../Users/codyl/AndroidStudioProjects/flutter_scroll_animation: "must be relative and normalized"
FINE: Exception type: ArgumentError
ERR : package:pub/src/ignore.dart 229:7                      Ignore.listFiles
    | package:pub/src/package.dart 280:19                    Package.listFiles
    | package:pub/src/command/lish.dart 310:49               LishCommand._publicationFromEntrypoint
    | ===== asynchronous gap ===========================
    | package:pub/src/command/lish.dart 460:25               LishCommand.runProtected
    | ===== asynchronous gap ===========================
    | package:pub/src/command.dart 196:7                     PubCommand.run
    | ===== asynchronous gap ===========================
    | package:args/command_runner.dart 212:13                CommandRunner.runCommand
    | ===== asynchronous gap ===========================
    | package:dartdev/dartdev.dart 236:18                    DartdevRunner.runCommand
    | ===== asynchronous gap ===========================
    | package:dartdev/dartdev.dart 47:16                     runDartdev
    | ===== asynchronous gap ===========================
    | C:\b\s\w\ir\x\w\sdk\pkg\dartdev\bin\dartdev.dart 13:5  main
ERR : This is an unexpected error. The full log and other details are collected in:
    | 
    |     C:\Users\codyl\AppData\Local\Pub\Cache\log\pub_log.txt
    | 
    | Consider creating an issue on https://github.com/dart-lang/pub/issues/new
    | and attaching the relevant parts of that log file.
---- End log transcript ----
sigurdm commented 1 month ago

To me it seems that somehow https://github.com/dart-lang/pub/blob/df3664d17fd146ccd19b32820a022404da91f6d3/lib/src/package.dart#L265 fails to give a proper relative path. (I want './' but get '../../../../../Users/codyl/AndroidStudioProjects/flutter_scroll_animation'.

Not sure how it happens (and why we have not seen it before), but probably it has to do with package:paths relative command not working with the /c/Users/codyl/AndroidStudioProjects/flutter_scroll_animation path given back from git.

@Cod-e-Codes is this first time you try to publish from this setup? Is this persistent?

@danielamp are you having the same issue?

Cod-e-Codes commented 1 month ago

I figured it out. Because the Windows file structure uses backslashes, it was having issues. I ran it in git bash and worked fine.

sigurdm commented 3 weeks ago

So it seems like we might be incompatible with non-git-bash cmd on windows.

sigurdm commented 2 weeks ago

Hmm if I clone your repo and run git rev-parse --show-toplevel I get C:/Users/sigurdm/flutter_scroll_animation

But it seems from the log that you get /c/Users/codyl/AndroidStudioProjects/flutter_scroll_animation

Not sure what is the discrepancy here. Maybe the way git is configured.

sigurdm commented 1 week ago

@Cod-e-Codes do you have any information about your setup in the failing case I could use to reproduce the error?

Cod-e-Codes commented 1 week ago

@sigurdm No, just the stuff I've already shared. The error is fixed. We can close this