-
Notifications
You must be signed in to change notification settings - Fork 14
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
pack: support .packignore #1096
base: master
Are you sure you want to change the base?
Conversation
f7a3cdc
to
3c54756
Compare
3c54756
to
6e08a11
Compare
6e08a11
to
f8132ea
Compare
263b010
to
3054d90
Compare
3054d90
to
5b191c3
Compare
5b191c3
to
19aca8b
Compare
cefb7aa
to
d153b43
Compare
c6c2d85
to
f434832
Compare
cli/util/osfs.go
Outdated
|
||
func GetOsFS() fs.FS { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add a comment about problem being solved of the function. It is not clear why it is required for a reader out of the context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
28cae6c
to
ef9e1ec
Compare
ef9e1ec
to
5db42c2
Compare
2a350e4
to
ac2a9c8
Compare
31e1920
to
4585ec5
Compare
cli/util/util.go
Outdated
@@ -1024,3 +1024,12 @@ func CollectWALFiles(paths []string) ([]string, error) { | |||
|
|||
return collectedFiles, nil | |||
} | |||
|
|||
// Map is a generic slice mapper function. | |||
func Map[T, V any](ts []T, fn func(T) V) []V { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes (see ignore_test.go)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this code into the test code then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
4585ec5
to
3dcb739
Compare
9fff4bb
to
0621983
Compare
A few corrections have been applied:
|
0621983
to
44eb6ed
Compare
7b539ff
to
e14d838
Compare
In some cases, there are files that may be useful, but should not be part of artifact. The ability to add files and directories to the .packignore file has been added, which allows you to ignore these files and directories when packing. Closes #812 @TarantoolBot document Title: `tt pack` support `.packignore` Use `.packignore` in the same way as `.gitignore` allows to exclude unnecessary files while preparing application package with `tt pack command.
e14d838
to
3aa4384
Compare
In some cases, there are files that may be useful, but should not be part of artifact. The ability to add files and directories to the .packignore file has been added, which allows you to ignore these files and directories when packing.
Closes #812