Quoting Grzegorz Rossolinski’s Stepan Bandera: The Life and Afterlife of a Ukrainian Nationalist, pages 167–9:

After a few days in Lviv, Bandera, realizing that eastern Galicia would remain in the Soviet sphere of influence, left the city for the area of Poland that was occupied by Germany, and which became known as the General Government.

[…]

In Cracow, Bandera met many of his comrades-in-arms. At that time, the city became the main center for Ukrainian nationalists. Nearly 30,000 Ukrainians, many of them young nationalists like Bandera, fled to the General Government in order to avoid a confrontation with the Soviet regime. In addition, many Ukrainians released from Polish prisons and the Bereza Kartuska detention camp were staying in Cracow and other places in the General Government. The OUN was, at this time, the most popular Ukrainian organization, which, owing to the Soviet occupation of Ukraine, “nourished everybody’s hope,” as Klymyshyn wrote in his memoirs.

(Emphasis added.)

Pop quiz: if the German Reich and the Soviet Union were “allied” in 1939, why did Ukrainian anticommies run screaming towards the Reich to get away from the Soviets? What difference was it supposed to make?