Why does `refresh --diff` not show the same detail...
# general
f
Why does
refresh --diff
not show the same detail as
up --diff
?
Copy code
$ task pulumi:stack -- refresh --diff 
task: [pulumi:dir] PULUMI_BACKEND_URL='file://~' poetry run pulumi --cwd infrastructure/pulumi --stack "main" refresh --diff


Previewing refresh (main):
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:main::aucampia-kron-20240116-docmove::pulumi:pulumi:Stack::aucampia-kron-20240116-docmove-main]
Resources:              
    ~ 1 to update
    5 unchanged
Do you want to perform this refresh?
No resources will be modified as part of this refresh; just your stack's state will be.
 details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:main::aucampia-kron-20240116-docmove::pulumi:pulumi:Stack::aucampia-kron-20240116-docmove-main]

Do you want to perform this refresh?
No resources will be modified as part of this refresh; just your stack's state will be.
 details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:main::aucampia-kron-20240116-docmove::pulumi:pulumi:Stack::aucampia-kron-20240116-docmove-main]

Do you want to perform this refresh?
No resources will be modified as part of this refresh; just your stack's state will be.
 no
confirmation declined, not proceeding with the refresh
task: Failed to run task "pulumi:stack": exit status 255
d
Refreshing is about updating the stored state against your infrastructure. Updating is about updating your infrastructure against the diff between your code and the stored state; so doesn't read the current infrastructure. You can do
up --refresh
to do the refresh just before the update
f
Yes but I want to see each value that is going to be updated with refresh
instead it shows very minimal info
I will try find a better example of my exact beef with it
But basically I would expect diff for refresh to look like update if there was a change on remote that is being compied into state
d
In interactive mode, is it not giving the option to show details?
I don't have an example to check against, but it sounds like a bug as the diff is meant to be detailed. Can you report to here please: https://github.com/pulumi/pulumi/issues
f
I will do next time I hit it