fyi bikeshed on whether to name it `./pants lock` ...
# development
h
fyi bikeshed on whether to name it
./pants lock
vs
./pants resolve
vs.
./pants python-lock
vs. something else: https://github.com/pantsbuild/pants/pull/12641. Feedback welcomed!
cc @bored-art-40741 and @fast-nail-55400 given your work with other languages. @hundreds-breakfast-49010 you may have thoughts
b
I know it's a lockfile, so
lock
makes a certain amount of sense. But as a purely semantic issue, I'm concerned that "lock" as a verb sounds like more potent security than what this is. For that reason, I'd vote for
resolve
or a fourth option.
h
thanks for the input! could you please move that comment to the github PR?
👍 1
f
Rust uses
cargo update
b
@fast-nail-55400 what do they use in Go?
f
go get
and
go mod tidy
b
a
Freeze?
p
Every language seems to pick a different word. Do any known tools use
resolve
? If not, I think that would be perfect for a language agnostic goal.
lock
freeze
update
and friends are all defined slightly differently for different language tools.
2
b
Good point @proud-dentist-22844!
h
I think
./pants generate-lockfiles
will be the most unambiguous and future-proof, given that a couple things are going to be changing in the future like Pants autogenerating the lockfile rather than forcing you to manually run the goal. https://github.com/pantsbuild/pants/pull/12641#issuecomment-905777885 In the future, I envision it will be deprecated in favor of
./pants update-lockfiles
Next part of the bikeshed!
gen-lockfiles
vs `generate-lockfiles`: https://github.com/pantsbuild/pants/pull/12680