[go: up one dir, main page]

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

sasl: extrafiles option documented incorrectly #8842

Closed
vances opened this issue Sep 21, 2024 · 0 comments
Closed

sasl: extrafiles option documented incorrectly #8842

vances opened this issue Sep 21, 2024 · 0 comments
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@vances
Copy link
Contributor
vances commented Sep 21, 2024

Describe the bug
The type specification for the ExtraFiles option in systools:make_tar/2 has the order of the tuple elements backwards.

To Reproduce

1> ls("foo.appup").
foo.appup     
ok
2> systools:make_tar("foo-0.1.0", [{extra_files, [{"lib/foo-0.1.0/ebin/foo.appup", "foo.appup"}]}]).
Cannot add file lib/foo-0.1.0/ebin/foo.appup to tar file - lib/foo-0.1.0/ebin/foo.appup: no such file or directory
error

Expected behavior
The file cse.app should be added to the release package tar file as lib/foo-0.1.0/ebin/foo.appup.

3> systools:make_tar("foo-0.1.0", [{extra_files, [{"foo.appup", "lib/foo-0.1.0/ebin/foo.appup"}]}]).
ok

Affected versions
OTP 27

Additional context
This is a documentation error only (unless you'd rather change the implementation to match the existing documentation).

@vances vances added the bug Issue is reported as a bug label Sep 21, 2024
@vances vances changed the title extrafiles option documented incorrectly sasl: extrafiles option documented incorrectly Sep 21, 2024
@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Sep 23, 2024
@vances vances closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

3 participants