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

config-tracking output file is always "prod" file despite the chosen profile #46669

Open
InfoSec812 opened this issue Mar 7, 2025 · 1 comment
Labels
area/config kind/bug Something isn't working

Comments

@InfoSec812
Copy link
Contributor

InfoSec812 commented Mar 7, 2025

Describe the bug

I have a Quarkus 3.18.4 project and I tried to dump the "effective" config for each of my profiles:

./mvnw package -DskipTests -DskipITs -Dquarkus.config-tracking.enabled=true -Dquarkus.profile=<profile>

The problem is that regardless of the profile chosen, the output always went to .quarkus/quarkus-prod-config-dump

Expected behavior

The ouput should be written to ${quarkus.config-tracking.directory}/${quarkus.config-tracking.file-prefix}-<profile>-${quarkus.config-tracking.file-suffix} (e.g. .quarkus/quarkus-<profile>-config-dump)

Actual behavior

The output is always written to the prod file.

How to Reproduce?

Steps to reproduce:

  1. Create a new Quarkus project of any sort
  2. Add at least one additional profile configuration (e.g. dev)
  3. Run a maven package using ./mvnw package -DskipTests -DskipITs -Dquarkus.config-tracking.enabled=true -Dquarkus.profile=prod
  4. Move the file .quarkus/quarkus-prod-config-dump to .quarkus/prod-dump
  5. Run another maven package with ./mvnw package -DskipTests -DskipITs -Dquarkus.config-tracking.enabled=true -Dquarkus.profile=dev
  6. See that the output is written to .quarkus/quarkus-prod-config-dump and is different than the first file generated

Output of uname -a or ver

Linux p15v 6.12.10-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 17 18:05:24 UTC 2025 x86_64 GNU/Linux

Output of java -version

openjdk version "21.0.5" 2024-10-15

Quarkus version or git rev

3.18.4

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)

Additional information

No response

@InfoSec812 InfoSec812 added the kind/bug Something isn't working label Mar 7, 2025
Copy link

quarkus-bot bot commented Mar 7, 2025

/cc @radcortez (config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant