https://pulumi.com logo
Title
j

jolly-window-25842

12/12/2022, 8:40 AM
Hi, I have an issue with a team member. I tried inviting him and he did a
pulumi up
, however pulumi says it basically has to update everything when run from his computer. We share the same repo obviously, I’m on Mac, he is on Windows. What could it be? Thanks a lot for the help, I can’t figure this out!
q

quaint-eye-38036

12/12/2022, 8:43 AM
Was a
pululmi preview --diff
tried?
j

jolly-window-25842

12/12/2022, 8:52 AM
Hi, so we have a bunch of files which are being loaded in a kubernetes configmap. Pulumi somehow thinks it has to re-create those as if the whole files have changed, but they are actually the same. I suspect it has something to do with it being windows, but if this happens every time it is not manageable
q

quaint-eye-38036

12/12/2022, 8:54 AM
Is it only with k8s configmaps or are other resources also affected?
j

jolly-window-25842

12/12/2022, 9:00 AM
that and a cloudfunction, which is defined it the .ts file, however pulumi creates a file for it on disk to be uploaded in a gcs bucket, so it still has to pass to disk. Basically, everything that has to be read from disk is considered as changed even though the content is the same. The diff shows
-
for every line, and then
+
of the same thing
q

quaint-eye-38036

12/12/2022, 9:11 AM
I may be wrong but I suspect it may have something to do with how new line characters are interpreted. Was the files(for eg the configmap) from windows copied to Mac to perform a
diff
?
j

jolly-window-25842

12/12/2022, 9:24 AM
files were created on mac, than committed to a git repo. On windows, did a clone and didn’t touch the files
q

quaint-eye-38036

12/12/2022, 9:29 AM
Agreed. However, it was suggestion to copy one of the files from windows to Mac and perform a
diff
to rule out the possibilities of special characters
j

jolly-window-25842

12/12/2022, 9:29 AM
Ah, ok, let me ask
yes, it’s the newlines