Skip to content

Commit

Permalink
chore: the pubspec.lock should not be in repo because it is determini…
Browse files Browse the repository at this point in the history
…ng libraries versions => different dart version in CI can't have different version of deps
  • Loading branch information
bednar committed Nov 20, 2024
1 parent e1f11c4 commit 0b67728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 609 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ commands:
- checkout
- restore_cache:
keys:
- v1.5-dependencies-{{ arch }}-{{ checksum "pubspec.lock" }}
- v1.5-dependencies-{{ arch }}-
- v1.6-dependencies-{{ arch }}-{{ checksum "pubspec.yaml" }}
- v1.6-dependencies-{{ arch }}-
- run:
name: Download deps
shell: << parameters.shell >>
Expand All @@ -43,7 +43,7 @@ commands:
shell: << parameters.shell >>
command: dart pub global activate junitreport
- save_cache:
key: v1.5-dependencies-{{ arch }}-{{ checksum "pubspec.lock" }}
key: v1.6-dependencies-{{ arch }}-{{ checksum "pubspec.yaml" }}
paths:
- .dart_tool
- << parameters.pub-cache >>
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
#pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
Expand Down
Loading

0 comments on commit 0b67728

Please sign in to comment.