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

Ignore missing deps file in neil new #242

Merged
merged 11 commits into from
Oct 17, 2024

Conversation

bobisageek
Copy link
Contributor

@bobisageek bobisageek commented Oct 13, 2024

Closes #241

Change Summary

  • when neil new output doesn't contain a deps file to update, do nothing (instead of throwing)
  • update CI task to have valid task names
  • update "latest version" test to expect clojure 1.12.0
  • add tests for assoc-project-meta!

Change Detail(s) by file

  • bb.edn - the ci task appears to call outdated(?) task names, so these are changed to run all the tasks describe in the Actions workflows
  • neil - updated just based on the run of gen-script - includes some changes that appear not have not been generated from prior commits
  • new.clj - only call assoc-project-meta! if the deps file exists in the directory created by neil new
  • dep_add_test.clj - newer version of clojure expected in test

Notes

  • might want to add the other test namespaces to test_runner, or maybe switch to using cognitect test runner... I didn't want to increase the scope of this change too much

  • This PR corresponds to an issue with a clear problem statement.

  • I have updated the CHANGELOG.md file with a description of the addressed issue.

  • I have considered whether I should add more tests covering the code I've changed.

neil Show resolved Hide resolved
neil Outdated Show resolved Hide resolved
- add a minimal template from a local root for use in the test
- add test that checks the write to deps file, when it exists and when it doesn't
@borkdude
Copy link
Contributor

Good for merge now it seems?

@bobisageek
Copy link
Contributor Author

Yep - I've got everything in that I'm aiming for.

@borkdude borkdude merged commit 55b1f7c into babashka:main Oct 17, 2024
4 checks passed
@bobisageek bobisageek deleted the ignore-missing-deps-file branch October 17, 2024 13:26
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

Successfully merging this pull request may close these issues.

neil new throws if there's no deps.edn file into which to add its data
2 participants