Похожие чаты

I have to execute a build which generates a WAR

file. I see that the checksum for every WAR generated is always different from the last inspite of no code changes. I came across this issue (https://stackoverflow.com/questions/53006925/gradle-same-checksum-for-repeated-build/53012937#53012937) which says

The generated class files get a creation/modification timestamp of the time they were created
This modification date is added as metadata to the generated jar/zip archives which results in the checksum differences


How can I verify if it indeed is true? I do not see sources in the answer

9 ответов

22 просмотра
Roy- Автор вопроса

I found diffoscope https://reproducible-builds.org/tools/ and this issue for Ant (https://bz.apache.org/bugzilla/show_bug.cgi?id=61269) which means the issue is true. Seems there is no native way to compare the differences, though I found the diff (time diff in my case) using the diffoscope

Did you try what's described in the documentation? tasks.withType(AbstractArchiveTask).configureEach { preserveFileTimestamps = false reproducibleFileOrder = true } https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives

Roy- Автор вопроса

I do not use gradle, unfortunately. I use Ant

Roy- Автор вопроса
Dmytro Buryak
Ah, ok, got it

my question was how do I verify why my build is not reproducible

Roy
my question was how do I verify why my build is no...

Because file attributes are added to zip/jar. And your compiled class files, and basically any other generated resource (log4j/logback configs, application.properties, etc.) will have the timestamp of the time when you executed build.

Roy
my question was how do I verify why my build is no...

Here's what I find. Seems, it's not supported. Only manual workaround - set fixed timestamp to all files, and order files ((( https://bz.apache.org/bugzilla/show_bug.cgi?id=61269

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта