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

Different-case directories are joined. #890

Open
2 tasks done
MitchellBot opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks done

Different-case directories are joined. #890

MitchellBot opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MitchellBot
Copy link

What happened?

When specifying directories with different casing, they're being treated as one directory.

My company installs some legacy components into /opt/companyname and some newer components into a /opt/CompanyName directory from the same package. When we do this with nfpm, the components specified for both destinations end up in /opt/CompanyName instead of two different directories.

How can we reproduce this?

Using the json configuration file with the following entries:

"contents": [
    { "src": "${SOURCE}/System.Memory.dll", "dst": "/opt/somedirectory/bin/", "expand": true },
    { "src": "${SOURCE}/System.Numerics.Vectors.dll", "dst": "/opt/SomeDirectory/bin/", "expand": true }
],

and then running nfpm, we're seeing the following directory structure in the package:
- opt
-- SomeDirectory
--- bin
---- System.Memory.dll
---- System.Numerics.Vectors.dll

When the desired result would be:

- opt
-- SomeDirectory
--- bin
---- System.Numerics.Vectors.dll
-- somedirectory
--- bin
---- System.Memory.dll

nfpm version

_____ ____  __  __
 _ __ |  ___|  _ \|  \/  |
| '_ \| |_  | |_) | |\/| |
| | | |  _| |  __/| |  | |
|_| |_|_|   |_|   |_|  |_|
nfpm: a simple and 0-dependencies apk, arch linux, deb, ipk, and rpm packager written in Go
https://nfpm.goreleaser.com

GitVersion:    2.41.1
GitCommit:     74e67380a5a028ccd155dbdfb29d3331cec659cf
GitTreeState:  false
BuildDate:     2024-11-16T13:23:30Z
BuiltBy:       goreleaser
GoVersion:     go1.23.3
Compiler:      gc
ModuleSum:     h1:4tyZ9b817msLuyGKw53ed3suZNApkGHVZDekdGe8ZEE=
Platform:      linux/amd64

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@MitchellBot MitchellBot added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants